| 67 | }; |
| 68 | |
| 69 | void UpdatePlayerLightOffset(Player &player) |
| 70 | { |
| 71 | if (player.lightId == NO_LIGHT) |
| 72 | return; |
| 73 | |
| 74 | const WorldTileDisplacement offset = player.position.CalculateWalkingOffset(player._pdir, player.AnimInfo); |
| 75 | ChangeLightOffset(player.lightId, offset.screenToLight()); |
| 76 | } |
| 77 | |
| 78 | void WalkNorthwards(Player &player, const DirectionSettings &walkParams) |
| 79 | { |
no test coverage detected