[Scummvm-git-logs] scummvm master -> e472b7b2a3274be8253b185ad5e4ad07a9dd6d8a
whiterandrek
whiterandrek at gmail.com
Fri Oct 2 21:59:56 UTC 2020
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
145cb9680d PETKA: fix JumpVich opcode
e472b7b2a3 PETKA: fix min walk distance
Commit: 145cb9680dd52c6c62883bbe605478715dd3204a
https://github.com/scummvm/scummvm/commit/145cb9680dd52c6c62883bbe605478715dd3204a
Author: Andrei Prykhodko (whiterandrek at gmail.com)
Date: 2020-10-03T00:58:36+03:00
Commit Message:
PETKA: fix JumpVich opcode
Changed paths:
engines/petka/objects/object.cpp
diff --git a/engines/petka/objects/object.cpp b/engines/petka/objects/object.cpp
index c5ad9fce87..561b48f48d 100644
--- a/engines/petka/objects/object.cpp
+++ b/engines/petka/objects/object.cpp
@@ -189,7 +189,7 @@ void QMessageObject::processMessage(const QMessage &msg) {
Common::Point p;
p.x = (msg.arg1 == 0xffff ? _walkX : msg.arg1);
p.y = (msg.arg2 == -1 ? _walkY : msg.arg2);
- g_vm->getQSystem()->getPetka()->setPos(p, false);
+ g_vm->getQSystem()->getChapay()->setPos(p, false);
break;
}
case kWalk:
Commit: e472b7b2a3274be8253b185ad5e4ad07a9dd6d8a
https://github.com/scummvm/scummvm/commit/e472b7b2a3274be8253b185ad5e4ad07a9dd6d8a
Author: Andrei Prykhodko (whiterandrek at gmail.com)
Date: 2020-10-03T00:59:09+03:00
Commit Message:
PETKA: fix min walk distance
Changed paths:
engines/petka/objects/heroes.cpp
diff --git a/engines/petka/objects/heroes.cpp b/engines/petka/objects/heroes.cpp
index efe0b2fc84..8b7b03c797 100644
--- a/engines/petka/objects/heroes.cpp
+++ b/engines/petka/objects/heroes.cpp
@@ -116,7 +116,7 @@ void QObjectPetka::walk(int x, int y) {
}
- if (currPos.sqrDist(walkPos) >= 25 * 25) {
+ if (currPos.sqrDist(walkPos) >= 25) {
_walk->init(currPos, walkPos);
_destX = x;
_destY = y;
More information about the Scummvm-git-logs
mailing list