- renamed truefz and truecz

This commit is contained in:
Christoph Oelckers 2022-02-04 17:36:38 +01:00
parent 8f64518637
commit 7fce0ed7ae
10 changed files with 26 additions and 26 deletions

View file

@ -3839,8 +3839,8 @@ void handle_se17(DDukeActor* actor)
int p = act1->spr.yvel;
if (numplayers < 2) ps[p].opos.Z = ps[p].pos.Z;
ps[p].pos.Z += q;
ps[p].truefz += q;
ps[p].truecz += q;
ps[p].__int_truefz += q;
ps[p].__int_truecz += q;
if (numplayers > 1) ps[p].opos.Z = ps[p].pos.Z;
}
if (act1->spr.statnum != STAT_EFFECTOR)
@ -3900,8 +3900,8 @@ void handle_se17(DDukeActor* actor)
ps[p].bobpos.Y = ps[p].opos.Y = ps[p].pos.Y;
ps[p].opos.Z = ps[p].pos.Z;
ps[p].truefz = act3->actor_int_floorz();
ps[p].truecz = act3->actor_int_ceilingz();
ps[p].__int_truefz = act3->actor_int_floorz();
ps[p].__int_truecz = act3->actor_int_ceilingz();
ps[p].bobcounter = 0;
ChangeActorSect(act3, act2->sector());
@ -4420,7 +4420,7 @@ void handle_se24(DDukeActor *actor, bool scroll, int shift)
{
if (ps[p].cursector == actor->sector() && ps[p].on_ground)
{
if (abs(ps[p].pos.Z - ps[p].truefz) < gs.playerheight + (9 << 8))
if (abs(ps[p].pos.Z - ps[p].__int_truefz) < gs.playerheight + (9 << 8))
{
ps[p].fric.X += x << 3;
ps[p].fric.Y += y << 3;

View file

@ -577,7 +577,7 @@ bool GameInterface::DrawAutomapPlayer(int mx, int my, int cposx, int cposy, int
else
i = TILE_APLAYERTOP;
j = abs(pp.truefz - pp.pos.Z) >> 8;
j = abs(pp.__int_truefz - pp.pos.Z) >> 8;
j = czoom * (act->spr.yrepeat + j);
if (j < 22000) j = 22000;

View file

@ -423,13 +423,13 @@ void DoPlayer(bool bSet, int lVar1, int lLabelID, int lVar2, DDukeActor* sActor,
break;
case PLAYER_TRUEFZ:
if (bSet) ps[iPlayer].truefz = lValue;
else SetGameVarID(lVar2, ps[iPlayer].truefz, sActor, sPlayer);
if (bSet) ps[iPlayer].__int_truefz = lValue;
else SetGameVarID(lVar2, ps[iPlayer].__int_truefz, sActor, sPlayer);
break;
case PLAYER_TRUECZ:
if (bSet) ps[iPlayer].truecz = lValue;
else SetGameVarID(lVar2, ps[iPlayer].truecz, sActor, sPlayer);
if (bSet) ps[iPlayer].__int_truecz = lValue;
else SetGameVarID(lVar2, ps[iPlayer].__int_truecz, sActor, sPlayer);
break;
case PLAYER_PLAYER_PAR:

View file

@ -2740,8 +2740,8 @@ void processinput_d(int snum)
j = getflorzofslopeptr(psectp, p->pos.X, p->pos.Y);
p->truefz = j;
p->truecz = getceilzofslopeptr(psectp, p->pos.X, p->pos.Y);
p->__int_truefz = j;
p->__int_truecz = getceilzofslopeptr(psectp, p->pos.X, p->pos.Y);
truefdist = abs(p->pos.Z - j);
if (clz.type == kHitSector && psectlotag == 1 && truefdist > gs.playerheight + (16 << 8))
@ -2761,7 +2761,7 @@ void processinput_d(int snum)
if (chz.actor()->spr.statnum == 1 && chz.actor()->spr.extra >= 0)
{
chz.setNone();
cz = p->truecz;
cz = p->__int_truecz;
}
}

View file

@ -3410,8 +3410,8 @@ void processinput_r(int snum)
tempfz = getflorzofslopeptr(psectp, p->pos.X, p->pos.Y);
}
p->truefz = tempfz;
p->truecz = getceilzofslopeptr(psectp, p->pos.X, p->pos.Y);
p->__int_truefz = tempfz;
p->__int_truecz = getceilzofslopeptr(psectp, p->pos.X, p->pos.Y);
truefdist = abs(p->pos.Z - tempfz);
if (clz.type == kHitSector && psectlotag == 1 && truefdist > gs.playerheight + (16 << 8))
@ -3431,7 +3431,7 @@ void processinput_r(int snum)
if (chz.actor()->spr.statnum == 1 && chz.actor()->spr.extra >= 0)
{
chz.setNone();
cz = p->truecz;
cz = p->__int_truecz;
}
else if (chz.actor()->spr.picnum == LADDER)
{
@ -3441,7 +3441,7 @@ void processinput_r(int snum)
if ((actions & SB_JUMP) && !p->OnMotorcycle)
{
chz.setNone();
cz = p->truecz;
cz = p->__int_truecz;
}
}
else

View file

@ -368,8 +368,8 @@ void displayrooms(int snum, double smoothratio, bool sceneonly)
else if (p->spritebridge == 0 && p->newOwner == nullptr)
{
if (cposz < (p->truecz + (4 << 8))) cposz = cz + (4 << 8);
else if (cposz > (p->truefz - (4 << 8))) cposz = fz - (4 << 8);
if (cposz < (p->__int_truecz + (4 << 8))) cposz = cz + (4 << 8);
else if (cposz > (p->__int_truefz - (4 << 8))) cposz = fz - (4 << 8);
}
if (sect)

View file

@ -128,8 +128,8 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, player_struct& w,
("posyv", w.vel.Y)
("poszv", w.vel.Z)
("last_pissed_time", w.last_pissed_time)
("truefz", w.truefz)
("truecz", w.truecz)
("truefz", w.__int_truefz)
("truecz", w.__int_truecz)
("player_par", w.player_par)
("visibility", w.visibility)
("bobcounter", w.bobcounter)

View file

@ -238,7 +238,7 @@ struct player_struct
int numloogs, oloogcnt, loogcnt;
int invdisptime;
int pyoff, opyoff;
int last_pissed_time, truefz, truecz;
int last_pissed_time, __int_truefz, __int_truecz;
int player_par, visibility;
int bobcounter;
int randomflamex, crack_time;

View file

@ -221,8 +221,8 @@ DEFINE_FIELD_X(DukePlayer, player_struct, opyoff)
//DEFINE_FIELD_X(DukePlayer, player_struct, posyv)
//DEFINE_FIELD_X(DukePlayer, player_struct, poszv)
DEFINE_FIELD_X(DukePlayer, player_struct, last_pissed_time)
DEFINE_FIELD_X(DukePlayer, player_struct, truefz)
DEFINE_FIELD_X(DukePlayer, player_struct, truecz)
//DEFINE_FIELD_X(DukePlayer, player_struct, truefz)
//DEFINE_FIELD_X(DukePlayer, player_struct, truecz)
DEFINE_FIELD_X(DukePlayer, player_struct, player_par)
DEFINE_FIELD_X(DukePlayer, player_struct, visibility)
DEFINE_FIELD_X(DukePlayer, player_struct, bobcounter)
@ -432,4 +432,4 @@ DEFINE_PROPERTY(spriteset, Ssssssssssssssssssss, DukeActor)
}
END_DUKE_NS
END_DUKE_NS

View file

@ -160,7 +160,7 @@ struct DukePlayer
native int numloogs, loogcnt;
native int invdisptime;
native int pyoff, opyoff;
native int last_pissed_time, truefz, truecz;
native int last_pissed_time;//, truefz, truecz;
native int player_par, visibility;
native int bobcounter;
native int randomflamex, crack_time;