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

Autoplay: fix types for prairie::enter check

This commit is contained in:
Jesse Ruderman 2021-07-25 23:17:08 -07:00
parent 042b95a8bb
commit afa97376eb

View File

@ -9,7 +9,7 @@ namespace hr {
bool doAutoplay; bool doAutoplay;
eLand autoplayLand; eLand autoplayLand;
namespace prairie { extern long long enter; } namespace prairie { extern cell *enter; }
bool sameland(eLand ll, eLand ln) { bool sameland(eLand ll, eLand ln) {
if(ln == laBarrier || ln == laOceanWall) if(ln == laBarrier || ln == laOceanWall)
@ -210,7 +210,7 @@ void noteUnusualSituations()
bool isAnythingWrong() bool isAnythingWrong()
{ {
long long ienter = (long long) prairie::enter; uintptr_t ienter = (uintptr_t) prairie::enter;
if(ienter && ienter < 100000) { if(ienter && ienter < 100000) {
printf("ERROR: prairie::enter has incorrect value\n"); printf("ERROR: prairie::enter has incorrect value\n");
return true; return true;