mirror of
https://github.com/pret/pmd-red.git
synced 2026-08-15 13:36:31 -05:00
slight cleanup of struct and documentation
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include "structs/dungeon_entity.h"
|
||||
#include "structs/str_position.h"
|
||||
|
||||
#define MAX_ROOM_COUNT 24 // Empirical max, not sure if the code supports any more.
|
||||
#define MAX_ROOM_COUNT 32 // Empirical max, not sure if the code supports any more.
|
||||
#define CORRIDOR_ROOM 0xFF
|
||||
|
||||
enum TerrainType
|
||||
|
||||
@@ -177,11 +177,8 @@ typedef struct Dungeon
|
||||
/* 0xE8C0 */ Tile *tilePointers[DUNGEON_MAX_SIZE_Y][DUNGEON_MAX_SIZE_X];
|
||||
u8 unk104C0;
|
||||
/* 0x104C4 */ RoomData roomData[MAX_ROOM_COUNT];
|
||||
u8 fill10764[0x10844 - 0x10764];
|
||||
/* 0x10844 */ s16 naturalJunctionListCounts[MAX_ROOM_COUNT];
|
||||
u8 fill10874[0x10884 - 0x10874];
|
||||
/* 0x10884 */ Position naturalJunctionList[MAX_ROOM_COUNT][32]; // Arrays of room exits for each room.
|
||||
u8 fill11444[0x11884 - 0x11484];
|
||||
/* 0x10884 */ Position naturalJunctionList[MAX_ROOM_COUNT][MAX_ROOM_COUNT]; // Arrays of room exits for each room.
|
||||
u8 unk11884[0x1194];
|
||||
u8 fill12A18[0x12C24 - 0x12A18];
|
||||
u8 unk12C24[0x930];
|
||||
|
||||
@@ -50,7 +50,7 @@ void sub_804AAD4(void)
|
||||
s32 maxRooms;
|
||||
s32 index;
|
||||
|
||||
for(index = 0; index < 0x20; index++)
|
||||
for(index = 0; index < MAX_ROOM_COUNT; index++)
|
||||
{
|
||||
gDungeon->roomData[index].unk0 = 0;
|
||||
gDungeon->roomData[index].unk1 = 0;
|
||||
@@ -90,7 +90,7 @@ void sub_804AAD4(void)
|
||||
}
|
||||
|
||||
|
||||
for(index = 0; index < 0x20; index++)
|
||||
for(index = 0; index < MAX_ROOM_COUNT; index++)
|
||||
{
|
||||
room2 = &gDungeon->roomData[index];
|
||||
if(room2 ->unk0 != 0)
|
||||
|
||||
Reference in New Issue
Block a user