mkafrin / PolyZone

PolyZone is a FiveM mod to define zones of different shapes and test whether a point is inside or outside of the zone
MIT License
202 stars 193 forks source link

Separate minZ and maxZ checks #8

Closed mkafrin closed 4 years ago

mkafrin commented 4 years ago

Checks for minZ and maxZ are done in the same if statement, so you have to have both, even if you only want one. https://github.com/mkafrin/PolyZone/blob/fc19caa4a2515006c6c0ff82a2aac9147f4ab50a/client.lua#L119

If there is no significant performance degradation, separate them to allow this functionality.

mkafrin commented 4 years ago

Added https://github.com/mkafrin/PolyZone/commit/75a09832e0a4bda5f3e74bdb1675cae5b162370d