git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit ff3a77fe65c4a7439aebab5688d5d1c7184c93d2
parent 084e6d585df94f4907d8c54d2c0a75df60bbff98
Author: Toxa <untoxa@mail.ru>
Date:   Wed, 17 Jan 2024 19:22:37 +0300

SMS/GG: fix scroll_sprite() function

Diffstat:
Mgbdk-lib/include/sms/sms.h6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gbdk-lib/include/sms/sms.h b/gbdk-lib/include/sms/sms.h @@ -743,8 +743,8 @@ inline uint8_t get_sprite_tile(uint8_t nb) { return shadow_OAM[0x41+(nb << 1)]; } -/** Function has no affect on sms. - +/** Function has no affect on sms. + This function is only here to enable game portability */ @@ -788,7 +788,7 @@ inline void move_sprite(uint8_t nb, uint8_t x, uint8_t y) { inline void scroll_sprite(uint8_t nb, int8_t x, int8_t y) { uint8_t new_y = shadow_OAM[nb] + y; shadow_OAM[nb] = (new_y < VDP_SAT_TERM) ? new_y : 0xC0; - shadow_OAM[0x40+(nb << 1)] = x; + shadow_OAM[0x40+(nb << 1)] += x; }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.