mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 20:58:07 +03:00
tr2/box: fix invalid comparison
Incompatible with the OG code.
This commit is contained in:
parent
09f4b0a4a8
commit
ab1a143e18
1 changed files with 2 additions and 2 deletions
|
@ -40,8 +40,8 @@ bool Box_StalkBox(
|
|||
}
|
||||
|
||||
const int32_t baddie_quad = item->pos.z > enemy->pos.z
|
||||
? (item->pos.x > x ? DIR_SOUTH : DIR_EAST)
|
||||
: (item->pos.x > x ? DIR_WEST : DIR_NORTH);
|
||||
? (item->pos.x > enemy->pos.x ? DIR_SOUTH : DIR_EAST)
|
||||
: (item->pos.x > enemy->pos.x ? DIR_WEST : DIR_NORTH);
|
||||
|
||||
return enemy_quad != baddie_quad || ABS(enemy_quad - box_quad) != 2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue