From 7b687413b2a40c53851931bd136a3afd980c01be Mon Sep 17 00:00:00 2001 From: galaxyhaxz Date: Sun, 7 Apr 2019 15:40:43 -0500 Subject: [PATCH] Rename InitPlayerLoc --- Source/player.cpp | 14 +++++++------- Source/player.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/player.cpp b/Source/player.cpp index 32de9cae7..1d1367396 100644 --- a/Source/player.cpp +++ b/Source/player.cpp @@ -935,7 +935,7 @@ void __cdecl InitMultiView() ViewY = plr[myplr].WorldY; } -void __fastcall InitPlayerLoc(int pnum, BOOL flag) +void __fastcall CheckEFlag(int pnum, BOOL flag) { int x, y, i; int bitflags; @@ -1078,7 +1078,7 @@ void __fastcall FixPlayerLocation(int pnum, int dir) plr[pnum]._ptargy = plr[pnum].WorldY; plr[pnum]._pxoff = 0; plr[pnum]._pyoff = 0; - InitPlayerLoc(pnum, FALSE); + CheckEFlag(pnum, FALSE); plr[pnum]._pdir = dir; if (pnum == myplr) { ScrollInfo._sxoff = 0; @@ -1123,7 +1123,7 @@ void __fastcall StartWalkStand(int pnum) plr[pnum]._pxoff = 0; plr[pnum]._pyoff = 0; - InitPlayerLoc(pnum, 0); + CheckEFlag(pnum, 0); if (pnum == myplr) { ScrollInfo._sxoff = 0; @@ -1251,7 +1251,7 @@ void __fastcall StartWalk(int pnum, int xvel, int yvel, int xadd, int yadd, int plr[pnum]._pVar7 = 0; plr[pnum]._pVar8 = 0; - InitPlayerLoc(pnum, FALSE); + CheckEFlag(pnum, FALSE); if (pnum != myplr) { return; @@ -1328,9 +1328,9 @@ void __fastcall StartWalk2(int pnum, int xvel, int yvel, int xoff, int yoff, int plr[pnum]._pVar8 = 0; if (EndDir == DIR_SE) { - InitPlayerLoc(pnum, TRUE); + CheckEFlag(pnum, TRUE); } else { - InitPlayerLoc(pnum, FALSE); + CheckEFlag(pnum, FALSE); } if (pnum != myplr) { @@ -1412,7 +1412,7 @@ void __fastcall StartWalk3(int pnum, int xvel, int yvel, int xoff, int yoff, int plr[pnum]._pdir = EndDir; plr[pnum]._pVar8 = 0; - InitPlayerLoc(pnum, FALSE); + CheckEFlag(pnum, FALSE); if (pnum != myplr) { return; diff --git a/Source/player.h b/Source/player.h index a90288873..53221af24 100644 --- a/Source/player.h +++ b/Source/player.h @@ -35,7 +35,7 @@ void __fastcall AddPlrExperience(int pnum, int lvl, int exp); void __fastcall AddPlrMonstExper(int lvl, int exp, char pmask); void __fastcall InitPlayer(int pnum, BOOL FirstTime); void __cdecl InitMultiView(); -void __fastcall InitPlayerLoc(int pnum, BOOL flag); +void __fastcall CheckEFlag(int pnum, BOOL flag); BOOL __fastcall SolidLoc(int x, int y); BOOL __fastcall PlrDirOK(int pnum, int dir); void __fastcall PlrClrTrans(int x, int y);