1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 15:00:26 +00:00

push cursor did not appear in the hardcore mode or while having targettable orbs

This commit is contained in:
Zeno Rogue 2019-05-13 14:22:12 +02:00
parent 1759b840d4
commit 3bad1aebae

View File

@ -6465,7 +6465,7 @@ void checkmove() {
for(int i=0; i<=MAX_EDGE; i++) legalmoves[i] = false;
canmove = false;
canmove = haveRangedTarget();
items[itWarning]+=2;
if(movepcto(-1, 0, true)) canmove = legalmoves[MAX_EDGE] = true;
@ -7787,8 +7787,6 @@ bool movepcto(int d, int subdir, bool checkonly) {
bool errormsgs = multi::players == 1 || multi::cpid == multi::players-1;
if(hardcore && !canmove) return false;
if(hardcore && checkonly) { return false; }
if(checkonly && haveRangedTarget()) return true;
if(!checkonly && d >= 0) {
flipplayer = false;
if(multi::players > 1) multi::flipped[multi::cpid] = false;