| 905 | } |
| 906 | |
| 907 | size_t OnWalk(const TCmd *pCmd, Player &player) |
| 908 | { |
| 909 | const auto &message = *reinterpret_cast<const TCmdLoc *>(pCmd); |
| 910 | const Point position { message.x, message.y }; |
| 911 | |
| 912 | if (gbBufferMsgs != 1 && player.isOnActiveLevel() && InDungeonBounds(position)) { |
| 913 | ClrPlrPath(player); |
| 914 | MakePlrPath(player, position, true); |
| 915 | player.destAction = ACTION_NONE; |
| 916 | } |
| 917 | |
| 918 | return sizeof(message); |
| 919 | } |
| 920 | |
| 921 | size_t OnAddStrength(const TCmd *pCmd, size_t pnum) |
| 922 | { |
no test coverage detected