1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

fixed -M and -viewall cheats

This commit is contained in:
Zeno Rogue 2019-04-21 00:57:43 +02:00
parent 2dd5c66d7f
commit c8d2772607

View File

@ -532,7 +532,7 @@ void viewall() {
itemcells.push_back(c);
}
int id = 0;
for(int it=1; it<ittypes; it++) {
for(int it=1; it<ittypes; it++) if(it != itBarrow) {
if(id >= isize(itemcells)) break;
itemcells[id++]->item = eItem(it);
}
@ -650,7 +650,7 @@ int read_cheat_args() {
PHASE(3); shift(); test_distances(argi());
}
else if(argis("-M")) {
PHASE(3) cheat();
PHASE(3) cheat(); start_game(); if(DIM == 3) { drawthemap(); bfs(); }
shift(); eMonster m = readMonster(args());
shift(); int q = argi();
printf("m = %s q = %d\n", dnameof(m), q);