mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-25 17:24:35 -04:00
Add SQUARE macro to improve readibility for distances
This commit is contained in:
@@ -569,7 +569,7 @@ s32 daTbox_c::boxCheck() {
|
||||
fopAc_ac_c* player = dComIfGp_getPlayer(0);
|
||||
cXyz playerChestDiff = player->current.pos - home.pos;
|
||||
|
||||
if (playerChestDiff.abs2XZ() < 10000.0f) {
|
||||
if (playerChestDiff.abs2XZ() < SQUARE(100.0f)) {
|
||||
if (fopAcM_seenActorAngleY(this, dComIfGp_getPlayer(0)) < 0x2000 && fopAcM_seenActorAngleY(player, this) < 0x2000) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user