aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2019-09-22 14:01:51 +0200
committerStrangerke2019-09-22 14:01:51 +0200
commit3996676c458a712aa128b1e71338e52cbe7df890 (patch)
treeccf8be4762434d13303b474a817916b3b27609e5 /engines
parent80370016f6ec0193c056156479ffe5b95ff88ba4 (diff)
downloadscummvm-rg350-3996676c458a712aa128b1e71338e52cbe7df890.tar.gz
scummvm-rg350-3996676c458a712aa128b1e71338e52cbe7df890.tar.bz2
scummvm-rg350-3996676c458a712aa128b1e71338e52cbe7df890.zip
HDB: Fix issue in stylusDown
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/input.cpp b/engines/hdb/input.cpp
index 09aa5d9599..7a45c2ef1e 100644
--- a/engines/hdb/input.cpp
+++ b/engines/hdb/input.cpp
@@ -352,7 +352,7 @@ void Input::stylusDown(int x, int y) {
int mx, my;
g_hdb->_map->getMapXY(&mx, &my);
- mx = ((mx + _stylusDownY) / kTileWidth) * kTileWidth;
+ mx = ((mx + _stylusDownX) / kTileWidth) * kTileWidth;
my = ((my + _stylusDownY) / kTileHeight) * kTileHeight;
g_hdb->_ai->setPlayerXY(mx, my);