- Strife game code refactored for coordinates.
This commit is contained in:
parent
c02d922014
commit
9f78bcd1e6
21 changed files with 124 additions and 115 deletions
|
|
@ -826,9 +826,9 @@ static void DrawCoordinates(player_t * CPlayer)
|
|||
|
||||
if (!map_point_coordinates || !automapactive)
|
||||
{
|
||||
x=CPlayer->mo->x;
|
||||
y=CPlayer->mo->y;
|
||||
z=CPlayer->mo->z;
|
||||
x=CPlayer->mo->X();
|
||||
y=CPlayer->mo->Y();
|
||||
z=CPlayer->mo->Z();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1286,7 +1286,8 @@ void DBaseStatusBar::Draw (EHudState state)
|
|||
y -= height * 2;
|
||||
}
|
||||
|
||||
value = &CPlayer->mo->z;
|
||||
fixedvec3 pos = CPlayer->mo->Pos();
|
||||
value = &pos.z;
|
||||
for (i = 2, value = &CPlayer->mo->z; i >= 0; y -= height, --value, --i)
|
||||
{
|
||||
mysnprintf (line, countof(line), "%c: %d", labels[i], *value >> FRACBITS);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue