- [CHG] Pujat el maxim d'habitacions per al prologo
This commit is contained in:
@@ -228,22 +228,22 @@ namespace room
|
||||
|
||||
} else if (util::strcomp(key, "exit-xp:")) {
|
||||
const int val = file::readInt(&buffer);
|
||||
exits[0] = SDL_clamp(val, 0, 64);
|
||||
exits[0] = SDL_clamp(val, 0, MAX_ROOMS);
|
||||
} else if (util::strcomp(key, "exit-xn:")) {
|
||||
const int val = file::readInt(&buffer);
|
||||
exits[1] = SDL_clamp(val, 0, 64);
|
||||
exits[1] = SDL_clamp(val, 0, MAX_ROOMS);
|
||||
} else if (util::strcomp(key, "exit-yp:")) {
|
||||
const int val = file::readInt(&buffer);
|
||||
exits[2] = SDL_clamp(val, 0, 64);
|
||||
exits[2] = SDL_clamp(val, 0, MAX_ROOMS);
|
||||
} else if (util::strcomp(key, "exit-yn:")) {
|
||||
const int val = file::readInt(&buffer);
|
||||
exits[3] = SDL_clamp(val, 0, 64);
|
||||
exits[3] = SDL_clamp(val, 0, MAX_ROOMS);
|
||||
} else if (util::strcomp(key, "exit-zp:")) {
|
||||
const int val = file::readInt(&buffer);
|
||||
exits[4] = SDL_clamp(val, 0, 64);
|
||||
exits[4] = SDL_clamp(val, 0, MAX_ROOMS);
|
||||
} else if (util::strcomp(key, "exit-zn:")) {
|
||||
const int val = file::readInt(&buffer);
|
||||
exits[5] = SDL_clamp(val, 0, 64);
|
||||
exits[5] = SDL_clamp(val, 0, MAX_ROOMS);
|
||||
} else if (util::strcomp(key, "editor-done:")) {
|
||||
const int val = file::readInt(&buffer);
|
||||
editor_done = SDL_clamp(val, 0, 1);
|
||||
@@ -598,7 +598,7 @@ namespace room
|
||||
{
|
||||
if (!::editor::isDevMode()) return;
|
||||
|
||||
for (int room=0; room<64; ++room)
|
||||
for (int room=0; room<MAX_ROOMS; ++room)
|
||||
{
|
||||
char filename[] = "rooms/00.txt";
|
||||
filename[6] = int(room/10)+48;
|
||||
|
||||
Reference in New Issue
Block a user