aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-05-20 16:36:46 +0200
committerAstatin <[email protected]>2025-05-20 16:36:46 +0200
commit1ebace4a4c074949555e4d403cc0757af891c79d (patch)
tree7824016a1de02c2e0165d7968bb274ce2ea17195
parent34ee469cc32584d579bae925857fc25c0a8c6c1b (diff)
Fix unfreeze bug
-rw-r--r--TODO6
-rw-r--r--entity/utils.gbasm4
2 files changed, 7 insertions, 3 deletions
diff --git a/TODO b/TODO
index 8642c12..4ada820 100644
--- a/TODO
+++ b/TODO
@@ -3,10 +3,10 @@ Bugs:
x - Heal at max should cancel
x - Off screen lasers
x - Path finding in tunnel
- - Object loading after being in view
+ ? - Object loading after being in view
- Kill before or after attack ?
- - Object sprite sometimes not disappear when picked up
- - Enemies never unfreeze
+ x - Object sprite sometimes not disappear when picked up
+ x - Enemies never unfreeze
x - Bugs health underflow when attacked
Accessibility issues:
diff --git a/entity/utils.gbasm b/entity/utils.gbasm
index 8dea589..e16e37a 100644
--- a/entity/utils.gbasm
+++ b/entity/utils.gbasm
@@ -192,6 +192,10 @@ Spawn_object: ; Texture in D, XY in BC, jump table thingy in E
CP $55
JP NC, $Skip_turn
+ LD A, L
+ AND $f0
+ OR $08
+ LD L, A
LD A, $00
LD (HL-), A
RES 1, (HL)