removed the MAX_EDGE limit

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

No files matched your search

+3 -3
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++)