summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 25d046d)
raw | patch | inline | side by side (parent: 25d046d)
author | fred-boy <fredboy@protonmail.com> | |
Fri, 27 Sep 2019 08:55:47 +0000 (15:55 +0700) | ||
committer | fred-boy <fredboy@protonmail.com> | |
Sun, 29 Sep 2019 04:39:17 +0000 (11:39 +0700) |
core/src/ru/deadsoftware/cavedroid/game/GameFluidsThread.java | patch | blob | history | |
core/src/ru/deadsoftware/cavedroid/game/GameItems.java | patch | blob | history |
diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameFluidsThread.java b/core/src/ru/deadsoftware/cavedroid/game/GameFluidsThread.java
index 272cd5de34f3630ba07ce10049371f0e15df7805..d404c43aca84b79aaca1bd7b5aac1d1db923238b 100644 (file)
private static final int FLUID_STATES = 5;
private static final int[] WATER_IDS = {8, 60, 61, 62, 63};
- private static final int[] LAVA_IDS = {9, 64, 65, 65, 67};
+ private static final int[] LAVA_IDS = {9, 64, 65, 66, 67};
private long fluidLastUpdateTimestamp = 0;
diff --git a/core/src/ru/deadsoftware/cavedroid/game/GameItems.java b/core/src/ru/deadsoftware/cavedroid/game/GameItems.java
index c3e020791570a456bf906f41165d8a76cb654171..87bb3d66a0cd4c0ac3a1196dc115d8cdf4f88fa6 100644 (file)
public static boolean fluidCanFlowThere(int thisId, int thatId) {
return thatId == 0 || (!getBlock(thatId).hasCollision() && !isFluid(thatId)) ||
- (isWater(thisId) && isWater(thatId) && thatId >= thisId) ||
- (isLava(thisId) && isLava(thatId) && thatId >= thisId);
+ (isWater(thisId) && isWater(thatId) && thisId < thatId) ||
+ (isLava(thisId) && isLava(thatId) && thisId < thatId);
}
public static Block getBlock(int id) {