MCPcopy Create free account
hub / github.com/diasurgical/devilution / SetPlayerOld

Function SetPlayerOld

Source/player.cpp:1081–1089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1079}
1080
1081void SetPlayerOld(int pnum)
1082{
1083 if ((DWORD)pnum >= MAX_PLRS) {
1084 app_fatal("SetPlayerOld: illegal player %d", pnum);
1085 }
1086
1087 plr[pnum]._poldx = plr[pnum].WorldX;
1088 plr[pnum]._poldy = plr[pnum].WorldY;
1089}
1090
1091void FixPlayerLocation(int pnum, int bDir)
1092{

Callers 13

M_TryH2HHitFunction · 0.85
MissToMonstFunction · 0.85
StartStandFunction · 0.85
StartWalkFunction · 0.85
StartWalk2Function · 0.85
StartWalk3Function · 0.85
StartAttackFunction · 0.85
StartRangeAttackFunction · 0.85
StartPlrBlockFunction · 0.85
StartSpellFunction · 0.85
StartPlrHitFunction · 0.85
StartPlayerKillFunction · 0.85

Calls 1

app_fatalFunction · 0.85

Tested by

no test coverage detected