diff options
author | Nipun Garg | 2019-08-16 14:20:29 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:34 +0200 |
commit | c2a8a0c2c4192eab5ff8cdf855a561755c957356 (patch) | |
tree | e17d671b2052a744e9f01c1b56fffc017808ac97 /engines/hdb/hdb.cpp | |
parent | f0eb59cdee3f8ac0152b6075f68db6d6a9784f85 (diff) | |
download | scummvm-rg350-c2a8a0c2c4192eab5ff8cdf855a561755c957356.tar.gz scummvm-rg350-c2a8a0c2c4192eab5ff8cdf855a561755c957356.tar.bz2 scummvm-rg350-c2a8a0c2c4192eab5ff8cdf855a561755c957356.zip |
HDB: Fix PPC Double Click code
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r-- | engines/hdb/hdb.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 4b4bc86c21..68f505b931 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -408,25 +408,6 @@ void HDBGame::setTargetXY(int x, int y) { if (p->touchpWait) return; - // Double-Clicking on the player to open inventory? - if (g_hdb->isPPC()) { - if (x == px && y == py) { - static uint32 dblClickTimer = 0; - - if (dblClickTimer) { - debug("Double Click Timer: %d", dblClickTimer); - debug("Click Timer Diff: %d", (int)(g_system->getMillis() - dblClickTimer)); - } - - if (dblClickTimer && ((int)(g_system->getMillis() - dblClickTimer) < (int)(kGameFPS * 5 * 1000 / 60))) { - g_hdb->_window->openInventory(); - dblClickTimer = 0; - } else - dblClickTimer = g_system->getMillis(); - return; - } - } - // If we're attacking...don't do anything else AIState stateList[] = { STATE_ATK_CLUB_UP, STATE_ATK_CLUB_DOWN, STATE_ATK_CLUB_LEFT, STATE_ATK_CLUB_RIGHT, |