HDB: Fix issue in stylusDown

This commit is contained in:
Strangerke 2019-09-22 14:01:51 +02:00
parent 80370016f6
commit 3996676c45

View File

@ -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);