Fix inLava detection

If LP._right is the same as pos the user is still in lava :)
This commit is contained in:
Sol Huebner
2019-11-14 11:32:17 -05:00
committed by GitHub
parent 2d74fddc26
commit 2e1dcbe5ac

View File

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