file: lift MAX_ROOMS condition

Closes #172
This commit is contained in:
rr- 2021-11-03 20:49:09 +01:00 committed by Marcin Kurczewski
parent 59f45e6623
commit 234a414a18
2 changed files with 0 additions and 5 deletions

View file

@ -30,7 +30,6 @@
#define MAX_SAVE_SLOTS 16
#define MAX_LEVEL_NAME_LENGTH 48
#define NUM_SLOTS 8
#define MAX_ROOMS 1024
#define MAX_FRAMES 10
#define MAX_CD_TRACKS 64
#define MAX_TEXTURES 2048

View file

@ -152,10 +152,6 @@ static int32_t LoadRooms(MYFILE *fp)
FileRead(&RoomCount, sizeof(uint16_t), 1, fp);
LOG_INFO("%d rooms", RoomCount);
if (RoomCount > MAX_ROOMS) {
strcpy(StringToShow, "LoadRoom(): Too many rooms");
return 0;
}
RoomInfo = game_malloc(sizeof(ROOM_INFO) * RoomCount, GBUF_ROOM_INFOS);
int i = 0;