Commit Graph
10 Commits
Author SHA1 Message Date
gAlfonso-bit c9c5586068 Fixed ChangeBgY_ScreenOff‘s signature. (#1447)
* Fix Functions

* Fix ChangeBgY_ScreenOff signature

* Remove unneeded changes

* Fix argument mismatch

Just to get this out of the way

* Not needed

* Update palette.c
2021-05-27 07:32:09 -05:00
gAlfonso-bit aca96a1510 Mark 0xFFF8 as ~7
Since 7 is used as a mask, I wondered if 0xFFF8 was used to undo the mask and it turns out it was.
2021-05-24 07:36:08 -05:00
gAlfonso-bit ff16812f99 UBFix: uninitialized variables in m4a engine and siirtc.c (#1432) 2021-05-23 09:56:37 -05:00
gAlfonso-bit ffbbc88801 BUGFIX: battle scripts (#1436) 2021-05-23 09:35:03 -05:00
gAlfonso-bitandMarcus Huderle a454f9c187 UBFIX: sprite.c (#1442)
Fix out-of-bounds array access in `SortSprites()`.

Co-authored-by: Marcus Huderle <huderlem@gmail.com>
2021-05-23 09:10:55 -05:00
gAlfonso-bit ab8318cc79 Fix UB: Destoyed task is modified.
After destruction, task is no longer used, so updating its values is worthless.
2021-05-15 14:35:32 -05:00
gAlfonso-bit 9a195c0fef Cherry-pick roamer bug fix from pokefirered
Adapted https://github.com/pret/pokefirered/blob/master/src/battle_main.c#L3831 to pokeemerald
2021-05-13 11:23:42 -05:00
gAlfonso-bit 2be29cdb77 Update IsPokemonCryPlaying 2021-05-13 11:23:11 -05:00
gAlfonso-bit 3e15a3ef8f Update IsPokemonCryPlaying 2021-05-13 11:23:11 -05:00
gAlfonso-bit 7d3f25dfb0 Change IsPokemonCryPlaying to bool32
Better reflects its usage
2021-05-13 11:23:11 -05:00