diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-06 16:06:56 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-03-06 16:06:56 +0100 |
| commit | f3737201eda72e51730a0762be98598fee08d86b (patch) | |
| tree | 5dd72353503b84f1024dea2423bfdd247c42bea6 /bin | |
| parent | b01c36807ec2fd07e21fac03cc201b2832425cf9 (diff) | |
| download | jetpac.nes-f3737201eda72e51730a0762be98598fee08d86b.tar.gz jetpac.nes-f3737201eda72e51730a0762be98598fee08d86b.zip | |
Fix a cycling bug when shooting carelessly
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à <mssola@mssola.com>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions
