mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-18 05:08:57 -04:00
Add SQUARE macro to improve readibility for distances
This commit is contained in:
@@ -1046,7 +1046,7 @@ BOOL daNpc_kam_c::actionDescendEvent(int evtStaffId) {
|
||||
}
|
||||
|
||||
cXyz delta = linkHeadTopPos - current.pos;
|
||||
if (delta.abs2XZ() < 100.0f*100.0f) {
|
||||
if (delta.abs2XZ() < SQUARE(100.0f)) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user