- variable renaming again

This commit is contained in:
Christoph Oelckers 2022-09-03 23:27:03 +02:00
parent 3a861e168c
commit 9aaae82de0
5 changed files with 12 additions and 12 deletions

View file

@ -1470,8 +1470,8 @@ struct SECTOR_OBJECT
z_rate, // rate at which z aproaches target z_rate, // rate at which z aproaches target
// only works for single player. // only works for single player.
bob_diff, // bobbing difference for the frame bob_diff, // bobbing difference for the frame
floor_loz, // floor low z _floor_loz, // floor low z
floor_hiz, // floor hi z _floor_hiz, // floor hi z
bob_amt, // bob amount max in z coord bob_amt, // bob amount max in z coord
// end of must floatify // end of must floatify

View file

@ -186,7 +186,7 @@ void GameInterface::GetInput(ControlInfo* const hidInput, double const scaleAdju
if ((pp->Flags2 & PF2_INPUT_CAN_TURN_VEHICLE)) if ((pp->Flags2 & PF2_INPUT_CAN_TURN_VEHICLE))
{ {
DoPlayerTurnVehicle(pp, input.avel, pp->int_ppos().Z + Z(10), abs(pp->int_ppos().Z + Z(10) - pp->sop->floor_loz)); DoPlayerTurnVehicle(pp, input.avel, pp->int_ppos().Z + Z(10), abs(pp->int_ppos().Z + Z(10) - pp->sop->_floor_loz));
} }
if ((pp->Flags2 & PF2_INPUT_CAN_TURN_TURRET)) if ((pp->Flags2 & PF2_INPUT_CAN_TURN_TURRET))

View file

@ -2535,7 +2535,7 @@ void DoPlayerMoveVehicle(PLAYER* pp)
OperateSectorObject(pp->sop, pp->angle.ang.Buildang(), { MAXSO, MAXSO }); OperateSectorObject(pp->sop, pp->angle.ang.Buildang(), { MAXSO, MAXSO });
pp->setcursector(pp->sop->op_main_sector); // for speed pp->setcursector(pp->sop->op_main_sector); // for speed
floor_dist = abs(z - pp->sop->floor_loz); floor_dist = abs(z - pp->sop->_floor_loz);
if (RectClip) if (RectClip)

View file

@ -639,8 +639,8 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, SECTOR_OBJECT& w,
("update", w.update, def->update) ("update", w.update, def->update)
("bob_diff", w.bob_diff, def->bob_diff) ("bob_diff", w.bob_diff, def->bob_diff)
("target_dist", w.target_dist, def->target_dist) ("target_dist", w.target_dist, def->target_dist)
("floor_loz", w.floor_loz, def->floor_loz) ("floor_loz", w._floor_loz, def->_floor_loz)
("floor_hiz", w.floor_hiz, def->floor_hiz) ("floor_hiz", w._floor_hiz, def->_floor_hiz)
("morph_z", w.morph_z, def->morph_z) ("morph_z", w.morph_z, def->morph_z)
("morph_z_min", w.morph_z_min, def->morph_z_min) ("morph_z_min", w.morph_z_min, def->morph_z_min)
("morph_z_max", w.morph_z_max, def->morph_z_max) ("morph_z_max", w.morph_z_max, def->morph_z_max)

View file

@ -728,11 +728,11 @@ void SectorObjectSetupBounds(SECTOR_OBJECT* sop)
sop->zorig_floor[sop->num_sectors] += Z(FixedToInt(sect->depth_fixed)); sop->zorig_floor[sop->num_sectors] += Z(FixedToInt(sect->depth_fixed));
// lowest and highest floor z's // lowest and highest floor z's
if (sect->int_floorz() > sop->floor_loz) if (sect->int_floorz() > sop->_floor_loz)
sop->floor_loz = sect->int_floorz(); sop->_floor_loz = sect->int_floorz();
if (sect->int_floorz() < sop->floor_hiz) if (sect->int_floorz() < sop->_floor_hiz)
sop->floor_hiz = sect->int_floorz(); sop->_floor_hiz = sect->int_floorz();
sop->num_sectors++; sop->num_sectors++;
} }
@ -948,8 +948,8 @@ void SetupSectorObject(sectortype* sectp, short tag)
sop->clipdist = 1024; sop->clipdist = 1024;
sop->target_dist = 0; sop->target_dist = 0;
sop->turn_speed = 4; sop->turn_speed = 4;
sop->floor_loz = -9999999; sop->_floor_loz = -9999999;
sop->floor_hiz = 9999999; sop->_floor_hiz = 9999999;
sop->ang_tgt = sop->ang = sop->ang_moving = 0; sop->ang_tgt = sop->ang = sop->ang_moving = 0;
sop->op_main_sector = nullptr; sop->op_main_sector = nullptr;
sop->ram_damage = 0; sop->ram_damage = 0;