Merge pull request #134 from Phnod/fix/guard-line-of-sight

fix: return false in chrHasLosToPosWasteful if outside FOV check
This commit is contained in:
fgsfds authored and GitHub committed 2023-09-04 21:46:52 +02:00
commit 2d628e2b5a
1 file changed
+4
+4
View File
@@ -6579,7 +6579,11 @@ bool chrHasLosToPosWasteful(struct chrdata *chr, struct coord *pos, RoomNum *roo
return chrHasLosToPos(chr, pos, rooms);
}
#ifdef N64_PLATFORM
return chrHasLosToPos(chr, pos, rooms);
#else
return false;
#endif
}
bool chrHasLosToProp(struct chrdata *chr, struct prop *prop)