mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-05-02 06:37:58 +03:00
game/draw: fix typos
This commit is contained in:
parent
722fc4abef
commit
8df7be07f0
1 changed files with 4 additions and 3 deletions
|
@ -390,7 +390,7 @@ void DrawPickupItem(ITEM_INFO *item)
|
||||||
|
|
||||||
// First - Is there floor under the item?
|
// First - Is there floor under the item?
|
||||||
// This is mostly true, but for example the 4 items in the Obelisk of
|
// This is mostly true, but for example the 4 items in the Obelisk of
|
||||||
// Kharmoon the 4 items are sitting ontop of a static mesh which is not
|
// Khamoon the 4 items are sitting on top of a static mesh which is not
|
||||||
// floor.
|
// floor.
|
||||||
FLOOR_INFO *floor =
|
FLOOR_INFO *floor =
|
||||||
GetFloor(item->pos.x, item->pos.y, item->pos.z, &item->room_number);
|
GetFloor(item->pos.x, item->pos.y, item->pos.z, &item->room_number);
|
||||||
|
@ -414,7 +414,7 @@ void DrawPickupItem(ITEM_INFO *item)
|
||||||
int16_t max_y = frmptr[0][FRAME_BOUND_MAX_Y];
|
int16_t max_y = frmptr[0][FRAME_BOUND_MAX_Y];
|
||||||
int16_t anim_y = frmptr[0][FRAME_POS_Y];
|
int16_t anim_y = frmptr[0][FRAME_POS_Y];
|
||||||
|
|
||||||
// Sifferent objects need different heuristics.
|
// Different objects need different heuristics.
|
||||||
switch (item_num_option) {
|
switch (item_num_option) {
|
||||||
case O_GUN_OPTION:
|
case O_GUN_OPTION:
|
||||||
case O_SHOTGUN_OPTION:
|
case O_SHOTGUN_OPTION:
|
||||||
|
@ -444,7 +444,7 @@ void DrawPickupItem(ITEM_INFO *item)
|
||||||
// Take the difference from the bottom of the sprite and the bottom
|
// Take the difference from the bottom of the sprite and the bottom
|
||||||
// of the animation and divide it by 8.
|
// of the animation and divide it by 8.
|
||||||
// 8 was chosen because in testing it positioned objects correctly.
|
// 8 was chosen because in testing it positioned objects correctly.
|
||||||
// Specifically the 4 items in the Obelisk of Kharmoon and keys.
|
// Specifically the 4 items in the Obelisk of Khamoon and keys.
|
||||||
// Some objects have a centred mesh and some have one that is from
|
// Some objects have a centred mesh and some have one that is from
|
||||||
// the bottom, for the centred ones; move up from the
|
// the bottom, for the centred ones; move up from the
|
||||||
// bottom is necessary.
|
// bottom is necessary.
|
||||||
|
@ -554,6 +554,7 @@ void DrawPickupItem(ITEM_INFO *item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
phd_PopMatrix();
|
phd_PopMatrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue