[Scummvm-cvs-logs] scummvm master -> ba50475dfaa812f34da87c76e95672a8e6cc8702
Strangerke
Strangerke at scummvm.org
Thu Oct 31 08:13:48 CET 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ba50475dfa HUGO: Fix CID 1003199-1003200, better fix of CID 1003197-1003198
Commit: ba50475dfaa812f34da87c76e95672a8e6cc8702
https://github.com/scummvm/scummvm/commit/ba50475dfaa812f34da87c76e95672a8e6cc8702
Author: Strangerke (strangerke at scummvm.org)
Date: 2013-10-31T00:13:16-07:00
Commit Message:
HUGO: Fix CID 1003199-1003200, better fix of CID 1003197-1003198
Changed paths:
engines/hugo/mouse.cpp
engines/hugo/object.cpp
diff --git a/engines/hugo/mouse.cpp b/engines/hugo/mouse.cpp
index ae286c8..a951706 100644
--- a/engines/hugo/mouse.cpp
+++ b/engines/hugo/mouse.cpp
@@ -169,7 +169,7 @@ void MouseHandler::processRightClick(const int16 objId, const int16 cx, const in
_vm->_object->useObject(objId); // Use status.objid on object
} else { // Clicked over viewport object
Object *obj = &_vm->_object->_objects[objId];
- int16 x = 0, y = 0;
+ int16 x, y;
switch (obj->_viewx) { // Where to walk to
case -1: // Walk to object position
if (_vm->_object->findObjectSpace(obj, &x, &y))
diff --git a/engines/hugo/object.cpp b/engines/hugo/object.cpp
index 7b4783e..7b826c8 100644
--- a/engines/hugo/object.cpp
+++ b/engines/hugo/object.cpp
@@ -358,7 +358,7 @@ void ObjectHandler::showTakeables() {
* Find a clear space around supplied object that hero can walk to
*/
bool ObjectHandler::findObjectSpace(Object *obj, int16 *destx, int16 *desty) {
- debugC(1, kDebugObject, "findObjectSpace(obj, %d, %d)", *destx, *desty);
+ debugC(1, kDebugObject, "findObjectSpace(...)");
Seq *curImage = obj->_currImagePtr;
int16 y = obj->_y + curImage->_y2 - 1;
More information about the Scummvm-git-logs
mailing list