| 2074 | } |
| 2075 | |
| 2076 | Player *PlayerAtPosition(Point position) |
| 2077 | { |
| 2078 | if (!InDungeonBounds(position)) |
| 2079 | return nullptr; |
| 2080 | |
| 2081 | auto playerIndex = dPlayer[position.x][position.y]; |
| 2082 | if (playerIndex == 0) |
| 2083 | return nullptr; |
| 2084 | |
| 2085 | return &Players[abs(playerIndex) - 1]; |
| 2086 | } |
| 2087 | |
| 2088 | void LoadPlrGFX(Player &player, player_graphic graphic) |
| 2089 | { |
no test coverage detected