1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 15:40:26 +00:00

CLI option -canvasfloor

This commit is contained in:
Zeno Rogue 2022-04-23 01:00:59 +02:00
parent a2f0f89c18
commit e25b8b94c2
2 changed files with 6 additions and 1 deletions

View File

@ -910,6 +910,11 @@ int read_cheat_args() {
cheat(); cheat();
gen_wandering = false; gen_wandering = false;
} }
else if(argis("-canvasfloor")) {
shift(); canvasfloor = argi();
for(int i=0; i<caflEND; i++) if(appears(mapeditor::canvasFloorName(i), args()))
canvasfloor = i;
}
else if(argis("-hroll")) { else if(argis("-hroll")) {
shift(); shift();
int i = argi(); int i = argi();

View File

@ -3101,7 +3101,7 @@ EX namespace mapeditor {
#endif #endif
string canvasFloorName(int id) { EX string canvasFloorName(int id) {
if(id>=0 && id<caflEND) if(id>=0 && id<caflEND)
return XLAT(canvasFloorNames[id]); return XLAT(canvasFloorNames[id]);
return its(id); return its(id);