[Scummvm-cvs-logs] SF.net SVN: scummvm: [21725] scummvm/trunk/engines/simon/verb.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Sun Apr 9 06:14:02 CEST 2006
Revision: 21725
Author: kirben
Date: 2006-04-09 06:12:59 -0700 (Sun, 09 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=21725&view=rev
Log Message:
-----------
Fix hitareas when scrolling in oracle of FF
Modified Paths:
--------------
scummvm/trunk/engines/simon/verb.cpp
Modified: scummvm/trunk/engines/simon/verb.cpp
===================================================================
--- scummvm/trunk/engines/simon/verb.cpp 2006-04-09 12:04:33 UTC (rev 21724)
+++ scummvm/trunk/engines/simon/verb.cpp 2006-04-09 13:12:59 UTC (rev 21725)
@@ -359,8 +359,13 @@
void SimonEngine::moveBox(uint hitarea, int x, int y) {
HitArea *ha = findHitAreaByID(hitarea);
if (ha != NULL) {
- ha->x = x;
- ha->y = y;
+ if (getGameType() == GType_FF) {
+ ha->x += x;
+ ha->y += y;
+ } else {
+ ha->x = x;
+ ha->y = y;
+ }
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list