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:
parent
042b95a8bb
commit
afa97376eb
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user