- afegides les habitacions de tot el joc (buides)
- minimapa mostra els numeros d'habitacio - tecla per a fer captures de pantalla
This commit is contained in:
@@ -1806,7 +1806,7 @@ auto MapEditor::setRoomProperty(const std::string& property, const std::string&
|
||||
try {
|
||||
int num = std::stoi(val);
|
||||
char buf[16];
|
||||
std::snprintf(buf, sizeof(buf), "%02d.yaml", num);
|
||||
std::snprintf(buf, sizeof(buf), "%03d.yaml", num);
|
||||
connection = buf;
|
||||
} catch (...) {
|
||||
connection = val;
|
||||
@@ -1937,7 +1937,7 @@ auto MapEditor::createNewRoom(const std::string& direction) -> std::string { //
|
||||
int new_num = 1;
|
||||
while (used.contains(new_num)) { ++new_num; }
|
||||
char name_buf[16];
|
||||
std::snprintf(name_buf, sizeof(name_buf), "%02d.yaml", new_num);
|
||||
std::snprintf(name_buf, sizeof(name_buf), "%03d.yaml", new_num);
|
||||
std::string new_name = name_buf;
|
||||
|
||||
// Derivar la ruta de la carpeta de rooms
|
||||
|
||||
Reference in New Issue
Block a user