summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2022-11-06 10:19:09 +0000
committeroctorock <79596758+octorock@users.noreply.github.com>2022-11-06 10:19:09 +0000
commit582831dac29aa6fdf896bd26cb70afdc15e1f0f5 (patch)
tree55d2221bc667fe6d869e1ca699de1214f35f9165 /src
parentdde3fa8d1b3783810f1ead021745fbef1c88a423 (diff)
Match sub_08080CB4
Diffstat (limited to 'src')
-rw-r--r--src/scroll.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/scroll.c b/src/scroll.c
index c4c73049..2d9c85bd 100644
--- a/src/scroll.c
+++ b/src/scroll.c
@@ -813,20 +813,22 @@ void sub_08080C80(u32* param_1) {
sub_0807C8B0(gMapTop.mapData, gRoomControls.width >> 4, gRoomControls.height >> 4);
}
-NONMATCH("asm/non_matching/scroll/sub_08080CB4.inc", void sub_08080CB4(Entity* this)) {
+void sub_08080CB4(Entity* this) {
Entity* effect;
u32 tmp;
u32 tmp2;
+ u32 tmp3;
+ u32 mask;
if (this->type != this->animIndex) {
InitAnimationForceUpdate(this, this->type);
if (this->type == 0x5c) {
const KinstoneWorldEvent* ptr = &gKinstoneWorldEvents[this->type2];
- this->palette.raw = ((ptr->objPalette & 0xf) << 4) | ptr->objPalette;
+ tmp = ptr->objPalette;
+ tmp2 = tmp & 0xf;
+ this->palette.raw = (tmp << 4) | tmp2;
}
-
} else {
-
UpdateAnimationSingleFrame(this);
if (this->spriteSettings.draw != 0) {
switch (this->type) {
@@ -857,4 +859,3 @@ NONMATCH("asm/non_matching/scroll/sub_08080CB4.inc", void sub_08080CB4(Entity* t
}
}
}
-END_NONMATCH