mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
CLI option -canvasfloor
This commit is contained in:
parent
a2f0f89c18
commit
e25b8b94c2
@ -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();
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user