MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / UpdatePlayerLightOffset

Function UpdatePlayerLightOffset

Source/player.cpp:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67};
68
69void 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
78void WalkNorthwards(Player &player, const DirectionSettings &walkParams)
79{

Callers 3

WalkSouthwardsFunction · 0.85
WalkSidewaysFunction · 0.85
DoWalkFunction · 0.85

Calls 3

ChangeLightOffsetFunction · 0.85
screenToLightMethod · 0.80

Tested by

no test coverage detected