- [FIX] Si es demana un nombre d'habitació invalid, simplement no fem res
This commit is contained in:
@@ -96,9 +96,9 @@ namespace room
|
||||
//void load(int x, int y, int8_t xp, int8_t xn, int8_t yp, int8_t yn, uint8_t col, uint8_t floor, uint8_t walls, uint8_t door, uint8_t walldoor)
|
||||
void load(const int room)
|
||||
{
|
||||
if (modified && ::editor::isEditing()) editor::save();
|
||||
if (room > 64 || room < 0) { return; }
|
||||
|
||||
if (room > 64) { perror("ERROR: Nombre d'habitació massa gran! Eixint..."); exit(1); }
|
||||
if (modified && ::editor::isEditing()) editor::save();
|
||||
|
||||
actor::actor_t *sel = actor::getSelected();
|
||||
char selected_actor_name[16]; selected_actor_name[0] = 0;
|
||||
|
||||
Reference in New Issue
Block a user