From f3737201eda72e51730a0762be98598fee08d86b Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 6 Mar 2026 16:06:56 +0100 Subject: Fix a cycling bug when shooting carelessly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When shooting like crazy and killing random enemies, after a while a cycling bug would appear which would make enemies to turn in weird directions, die unexpectedly, and other weird shenanigans. This comes back to commit 7c493ba3f338 ("Improve a bit the performance on enemy death"), which removed the saving/restoring of the value on the 'y' register. That being said, this register was actually being needed at least by Bullets::update(), so in certain situations this register might have a bad value (e.g. via the Explosions::create() call). Fixes: 7c493ba3f338 ("Improve a bit the performance on enemy death") Signed-off-by: Miquel Sabaté Solà --- .nasm/segments.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.nasm/segments.txt') diff --git a/.nasm/segments.txt b/.nasm/segments.txt index 2367e2f..f89b010 100644 --- a/.nasm/segments.txt +++ b/.nasm/segments.txt @@ -1,4 +1,4 @@ - HEADER: 16/16 (100%) -- ROM0: 6448/32762 (19.68%) +- ROM0: 6452/32762 (19.69%) - ROMV: 6/6 (100%) - ROM2: 8192/8192 (100%) -- cgit v1.2.3