1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 17:27:57 +00:00

removed the MAX_EDGE limit

This commit is contained in:
Zeno Rogue
2020-01-18 16:03:32 +01:00
parent a6da5ded75
commit 2271a67506
24 changed files with 238 additions and 190 deletions

View File

@@ -28,7 +28,7 @@ EX eMonster who_kills_me;
EX int lastkills;
EX bool legalmoves[MAX_EDGE+1];
EX vector<bool> legalmoves;
EX bool hasSafeOrb(cell *c) {
return
@@ -402,11 +402,11 @@ EX void checkmove() {
// do not activate orbs!
for(int i=0; i<ittypes; i++) orbusedbak[i] = orbused[i];
for(int i=0; i<=MAX_EDGE; i++) legalmoves[i] = false;
legalmoves.clear(); legalmoves.resize(cwt.at->type+1, false);
canmove = haveRangedTarget();
items[itWarning]+=2;
if(movepcto(-1, 0, true)) canmove = legalmoves[MAX_EDGE] = true;
if(movepcto(-1, 0, true)) canmove = legalmoves[cwt.at->type] = true;
if(vid.mobilecompasssize || !canmove)
for(int i=0; i<cwt.at->type; i++)