mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-24 22:26:40 +00:00
f42d97c6f3
Due to an issue in4a15cc3b9f, animals incorrectly tried going towards the roaming point instead of away from it. With that fixed, MovementUpdate still did not trigger as the min and max range were the same. Use -1 as max range (= infinite) instead since we want to move arbitrarily away. Having an infinite max range was broken inc219ee54b2, this re-implements that. Further, other calls with equal min and max range have been changed likewise. This does not entirely fix whales, which run in other problems because of their large roaming range. Differential Revision: https://code.wildfiregames.com/D1980 This was SVN commit r22413.