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

Function ClearPlrPVars

Source/player.cpp:409–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409void ClearPlrPVars(int pnum)
410{
411 if ((DWORD)pnum >= MAX_PLRS) {
412 app_fatal("ClearPlrPVars: illegal player %d", pnum);
413 }
414
415 plr[pnum]._pVar1 = 0;
416 plr[pnum]._pVar2 = 0;
417 plr[pnum]._pVar3 = 0;
418 plr[pnum]._pVar4 = 0;
419 plr[pnum]._pVar5 = 0;
420 plr[pnum]._pVar6 = 0;
421 plr[pnum]._pVar7 = 0;
422 plr[pnum]._pVar8 = 0;
423}
424
425void SetPlrAnims(int pnum)
426{

Callers 9

InitPlayerFunction · 0.85
PM_DoWalkFunction · 0.85
PM_DoWalk2Function · 0.85
PM_DoWalk3Function · 0.85
PM_DoAttackFunction · 0.85
PM_DoRangeAttackFunction · 0.85
PM_DoBlockFunction · 0.85
PM_DoSpellFunction · 0.85
PM_DoGotHitFunction · 0.85

Calls 1

app_fatalFunction · 0.85

Tested by

no test coverage detected