Skip to content

Commit 3dcfe92

Browse files
author
slaw-22
committed
Decomp IsFullFloorFixedRoom
1 parent 5b5dc49 commit 3dcfe92

File tree

5 files changed

+23
-29
lines changed

5 files changed

+23
-29
lines changed

asm/include/overlay_29_023361D4.inc

Lines changed: 0 additions & 2 deletions
This file was deleted.

asm/overlay_29_023361D4.s

Lines changed: 0 additions & 26 deletions
This file was deleted.

include/fixed_room_data_1.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef PMDSKY_FIXED_ROOM_DATA_1_H
2+
#define PMDSKY_FIXED_ROOM_DATA_1_HH
3+
4+
#include "util.h"
5+
6+
bool8 IsFullFloorFixedRoom();
7+
8+
#endif //PMDSKY_FIXED_ROOM_DATA_1_H

main.lsf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ Overlay OVY_29
590590
Object src/overlay_29_023350D8.o
591591
Object asm/overlay_29_023350FC.o
592592
Object src/dungeon_map_access.o
593-
Object asm/overlay_29_023361D4.o
593+
Object src/fixed_room_data_1.o
594594
Object src/run_dungeon.o
595595
Object asm/overlay_29_02336224.o
596596
Object src/overlay_29_02337CA8.o

src/fixed_room_data_1.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include "fixed_room_data_1.h"
2+
3+
#include "dungeon.h"
4+
5+
bool8 IsFullFloorFixedRoom()
6+
{
7+
u8 fixed_room_id = DUNGEON_PTR[0]->gen_info.fixed_room_id;
8+
9+
if(fixed_room_id != 0 && fixed_room_id < FIXED_SEALED_CHAMBER) {
10+
return TRUE;
11+
}
12+
13+
return FALSE;
14+
}

0 commit comments

Comments
 (0)