mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-20 03:54:47 +00:00
CLI option -canvasfloor
This commit is contained in:
parent
a2f0f89c18
commit
e25b8b94c2
@ -910,6 +910,11 @@ int read_cheat_args() {
|
||||
cheat();
|
||||
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")) {
|
||||
shift();
|
||||
int i = argi();
|
||||
|
@ -3101,7 +3101,7 @@ EX namespace mapeditor {
|
||||
#endif
|
||||
|
||||
|
||||
string canvasFloorName(int id) {
|
||||
EX string canvasFloorName(int id) {
|
||||
if(id>=0 && id<caflEND)
|
||||
return XLAT(canvasFloorNames[id]);
|
||||
return its(id);
|
||||
|
Loading…
Reference in New Issue
Block a user