- Duke: Replace player_struct exity with exit.Y calls.

This commit is contained in:
Mitchell Richters 2021-12-30 22:39:32 +11:00
parent 8d2595ea84
commit 2d6bc783c4
8 changed files with 9 additions and 9 deletions

View file

@ -301,8 +301,8 @@ void DoPlayer(bool bSet, int lVar1, int lLabelID, int lVar2, DDukeActor* sActor,
break;
case PLAYER_EXITY:
if (bSet) ps[iPlayer].exity = lValue;
else SetGameVarID(lVar2, ps[iPlayer].exity, sActor, sPlayer);
if (bSet) ps[iPlayer].exit.Y = lValue;
else SetGameVarID(lVar2, ps[iPlayer].exit.Y, sActor, sPlayer);
break;
case PLAYER_LOOGIEX:

View file

@ -1073,7 +1073,7 @@ DEFINE_FIELD_X(DukePlayer, player_struct, hard_landing)
DEFINE_FIELD_X(DukePlayer, player_struct, ohard_landing)
DEFINE_FIELD_X(DukePlayer, player_struct, psectlotag)
//DEFINE_FIELD_X(DukePlayer, player_struct, exitx)
DEFINE_FIELD_X(DukePlayer, player_struct, exity)
//DEFINE_FIELD_X(DukePlayer, player_struct, exity)
DEFINE_FIELD_X(DukePlayer, player_struct, loogiex)
DEFINE_FIELD_X(DukePlayer, player_struct, loogiey)
DEFINE_FIELD_X(DukePlayer, player_struct, numloogs)

View file

@ -717,7 +717,7 @@ void prelevel_common(int g)
if (sectp->lotag == -1)
{
ps[0].exit.X = sectp->firstWall()->pos.X;
ps[0].exity = sectp->firstWall()->pos.Y;
ps[0].exit.Y = sectp->firstWall()->pos.Y;
continue;
}
}

View file

@ -290,7 +290,7 @@ void prelevel_d(int g, TArray<DDukeActor*>& actors)
if (ac->spr.lotag == -1 && (ac->spr.cstat & CSTAT_SPRITE_ALIGNMENT_WALL))
{
ps[0].exit.X = ac->spr.pos.X;
ps[0].exity = ac->spr.pos.Y;
ps[0].exit.Y = ac->spr.pos.Y;
}
else switch (ac->spr.picnum)
{

View file

@ -534,7 +534,7 @@ void prelevel_r(int g, TArray<DDukeActor*>& actors)
if (ac->spr.lotag == -1 && (ac->spr.cstat & CSTAT_SPRITE_ALIGNMENT_WALL))
{
ps[0].exit.X = ac->spr.pos.X;
ps[0].exity = ac->spr.pos.Y;
ps[0].exit.Y = ac->spr.pos.Y;
}
else switch (ac->spr.picnum)
{

View file

@ -117,7 +117,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, player_struct& w,
("fricx", w.fric.X)
("fricy", w.fric.Y)
("exitx", w.exit.X)
("exity", w.exity)
("exity", w.exit.Y)
("numloogs", w.numloogs)
("loogcnt", w.loogcnt)
.Array("loogiex", w.loogiex, w.numloogs)

View file

@ -201,7 +201,7 @@ struct player_struct
short psectlotag;
// From here on it is unaltered from JFDuke with the exception of a few fields that are no longer needed and were removed.
int exity, loogiex[64], loogiey[64], numloogs, loogcnt;
int loogiex[64], loogiey[64], numloogs, loogcnt;
int invdisptime;
int bobposx, bobposy, pyoff, opyoff;
int last_pissed_time, truefz, truecz;

View file

@ -150,7 +150,7 @@ struct DukePlayer
native int16 psectlotag;
// From here on it is unaltered from JFDuke with the exception of a few fields that are no longer needed and were removed.
native int exity, loogiex[64], loogiey[64], numloogs, loogcnt;
native int loogiex[64], loogiey[64], numloogs, loogcnt;
native int invdisptime;
native int bobposx, bobposy, pyoff, opyoff;
native int last_pissed_time, truefz, truecz;