summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b34480)
raw | patch | inline | side by side (parent: 8b34480)
author | fredboy <fredboy@protonmail.com> | |
Sun, 21 Apr 2024 19:10:52 +0000 (02:10 +0700) | ||
committer | fredboy <fredboy@protonmail.com> | |
Sun, 21 Apr 2024 19:10:52 +0000 (02:10 +0700) |
core/src/ru/deadsoftware/cavedroid/game/world/GameWorldFluidsLogicControllerTask.java | patch | blob | history |
diff --git a/core/src/ru/deadsoftware/cavedroid/game/world/GameWorldFluidsLogicControllerTask.java b/core/src/ru/deadsoftware/cavedroid/game/world/GameWorldFluidsLogicControllerTask.java
index ed6b1ec634d70cc880ddb81f9d28897eaf811f16..99d1a046b51605b9e8570e408e69b4eb5105cbe8 100644 (file)
private void fluidUpdater() {
int midScreen = (int) mMobsController.getPlayer().x / 16;
for (int y = mGameWorld.getHeight() - 1; y >= 0; y--) {
- for (int x = 0; x <= mGameWorld.getWidth() / 2; x++) {
+ for (int x = 0; x <= Math.min(mGameWorld.getWidth() / 2, 32); x++) {
updateFluids(midScreen + x, y);
updateFluids(midScreen - x, y);
}