Split The code is public; the app answers only to the crew.

A resumed match comes back on the map it was played on: `restoreWorld` reads the save, not a default #170

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

`restoreWorld` no longer takes a `map` parameter — it now builds on `MAPS[save.map]`, using the map recorded in the snapshot. `DE_FORGE` and `MapDef` remain in use as `buildWorld`'s default and type, so nothing else changed there.

shipped merged

opened this

restoreWorld no longer takes a map parameter — it now builds on MAPS[save.map], using the map recorded in the snapshot. DE_FORGE and MapDef remain in use as buildWorld's default and type, so nothing else changed there.

All existing callers (in world.test.ts) already used the two-argument form, and a new test snapshots a match built on de_cinder, restores it, and asserts the restored world's map is de_cinder. The half-time swap logic (pastHalf rebuilding on other(playerTeam)) is untouched.

bun run check passes clean: 694 tests, 0 failures.

Closes #161

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs