aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


commit 83e4048c1be06f446b12faa929425b34ff3f06a7
parent 85a2e8d6a4628cf8f37f3cb2a16d84d1aecb39ab
Author: anon <anon@example.com>
Date:   Fri,  6 Nov 2026 06:22:11 +0000

Keep root-expiry roaming fixture outside the arrival radius

Diffstat:
MTODO.md | 6++++++
Mserver/nano_control_movement_test.go | 4++++
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/TODO.md b/TODO.md @@ -341,6 +341,12 @@ rewriting this document does not close them. keeps the rotated browser token. `TestAdminBrowser` passes through player password changes, live game interactions and authenticated profile upload. The restriction on changing unadopted visitors' passwords is unchanged. +- [x] **Make the root-expiry roaming regression deterministic.** The November 5 + full server run exposed a random destination inside the arrival radius, so + the test could report a movement failure after the root had correctly expired. + Place the fixture's home far enough away that every sampled destination + requires movement. All three modes pass 20 repeated runs; production movement + is unchanged. - [ ] **Replace numbered Visitor names with short, cute random names.** Use curated beginning/middle/ending syllables to produce pronounceable names, aiming for 6-8 letters and several million distinct usable combinations to diff --git a/server/nano_control_movement_test.go b/server/nano_control_movement_test.go @@ -46,6 +46,10 @@ func TestControlRootStopsRoamingPursuitAndReturnUntilExpiry(t *testing.T) { target.motion.home = [3]float32{21, 0, 0} target.motion.returning = true } + if mode == "roaming" { + // Every random destination must be outside the arrival radius. + target.motion.home = [3]float32{21, 0, 0} + } target.motion.nextMove = at before := target.position