Merge branch 'master' into enemies

This commit is contained in:
octorock
2023-12-30 22:18:38 +01:00
28 changed files with 843 additions and 839 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ void ItemOnGround(ItemOnGroundEntity* this) {
}
if (super->type == 0x5C) {
gRoomVars.field_0x4++;
gRoomVars.numKinstoneDrops++;
}
sub_08080CB4(super);
+1 -1
View File
@@ -104,7 +104,7 @@ static u32 sub_08088938(PressurePlateEntity* this) {
x = super->x.HALF.HI - 8;
y = super->y.HALF.HI - 8;
for (i = 0; i < 8; ++i) {
Entity* e = gRoomVars.entities[i];
Entity* e = gRoomVars.puzzleEntities[i];
if (e != NULL) {
if ((u16)(e->x.HALF.HI - x) < 0x11 && ((u16)(e->y.HALF_U.HI - y) < 0x11)) {
e->spriteOffsetY = sSpriteOffsets[this->dir];
+4 -4
View File
@@ -172,8 +172,8 @@ void sub_08089454(PushableStatueEntity* this) {
void sub_080894C8(PushableStatueEntity* this) {
u32 index;
for (index = 0; index < 8; index++) {
if (gRoomVars.entities[index] == NULL) {
gRoomVars.entities[index] = super;
if (gRoomVars.puzzleEntities[index] == NULL) {
gRoomVars.puzzleEntities[index] = super;
break;
}
}
@@ -182,8 +182,8 @@ void sub_080894C8(PushableStatueEntity* this) {
void sub_080894FC(PushableStatueEntity* this) {
u32 index;
for (index = 0; index <= 7; index++) {
if (super == gRoomVars.entities[index]) {
gRoomVars.entities[index] = NULL;
if (super == gRoomVars.puzzleEntities[index]) {
gRoomVars.puzzleEntities[index] = NULL;
break;
}
}