Merge pull request #9 from solhuebner/patch-1

Fix inLava detection
This commit is contained in:
bdring
2019-11-14 10:52:03 -06:00
committed by GitHub

View File

@@ -1099,7 +1099,7 @@ bool inLava(int pos){
for(i = 0; i<LAVA_COUNT; i++){
LP = lavaPool[i];
if(LP.Alive() && LP._state == Lava::ON){
if(LP._left <= pos && LP._right > pos) return true;
if(LP._left <= pos && LP._right >= pos) return true;
}
}
return false;