diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-05-07 12:23:50 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-05-07 12:23:50 +0200 |
| commit | 9590420f5f7595021771c216f3129827a0591b37 (patch) | |
| tree | 3b92adcafce35d050fb7b39d5ae6690ed510a841 /fonts/Cinzel-VariableFont_wght.ttf | |
| parent | 20abde4dd780b51840e3498336bf907f0fd9164c (diff) | |
Fix unit stopping when destination is occupied by another unit
When a unit arrived exactly MOVE_SPEED away from its destination, it would
move there via moveToward rather than snapping. On the next tick, its own
cell appeared blocked in the moveMap, triggering a repath to an adjacent
cell — causing infinite oscillation. Fix by excluding the unit's own current
cell from the blocked check before repathing. Also adds repath-to-adjacent
logic so units that arrive while the destination is genuinely occupied by
someone else settle next to it instead of stopping mid-journey.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'fonts/Cinzel-VariableFont_wght.ttf')
0 files changed, 0 insertions, 0 deletions
