unit: improved unit switching
authorLukas Krickl <lukas@krickl.dev>
Tue, 20 May 2025 16:03:11 +0000 (18:03 +0200)
committerLukas Krickl <lukas@krickl.dev>
Tue, 20 May 2025 16:03:11 +0000 (18:03 +0200)
commitfbfdcaf6200f259e9bdbde37928909fff5acb157
tree85c94d8b37e67dcb45f8d01d15e8a7be6bd66aef
parenta983d1fb208c92aed0d5a44320cbbd6c83e9773d
unit: improved unit switching

Unit switching now forces the current unti to sleep and the new unit to
wake up.

Unit switching now is controlled by a flag and done in the gameplay
update loop.
src/defs.s
src/map.s
src/unit.s
src/update.s
src/wram.s