summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 99a5642)
raw | patch | inline | side by side (parent: 99a5642)
author | fred-boy <fred-boy@protonmail.com> | |
Sat, 24 Nov 2018 16:44:59 +0000 (23:44 +0700) | ||
committer | fred-boy <fred-boy@protonmail.com> | |
Sat, 24 Nov 2018 16:44:59 +0000 (23:44 +0700) |
core/src/ru/deadsoftware/cavecraft/game/GamePhysics.java | patch | blob | history |
diff --git a/core/src/ru/deadsoftware/cavecraft/game/GamePhysics.java b/core/src/ru/deadsoftware/cavecraft/game/GamePhysics.java
index 101ff7950f8d7f5560a84daf0c772212265e4d85..94f6f36d9dd6aa37e0b4ffc4a4f2caf7d3d338e2 100644 (file)
private void playerPhy(Player pl) {
pl.pos.y += pl.mov.y;
mobYColl(pl);
+ if (pl.isDead()) return;
if (GameItems.isFluid(getBlock(pl.getRect()))) {
if (CaveGame.TOUCH && pl.mov.x != 0 && !pl.swim && !pl.flyMode) pl.swim = true;
private void mobPhy(Mob mob) {
mob.pos.y += mob.mov.y;
mobYColl(mob);
+ if (mob.isDead()) return;
if (mob.getType() == 0 && GameItems.isFluid(getBlock(mob.getRect()))) {
if (mob.mov.y > 9) mob.mov.add(0, -.9f);