aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/fights.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2007-10-07 11:07:45 +0000
committerPaul Gilbert2007-10-07 11:07:45 +0000
commit8ff665c58f0c49fcd3b21b6858f64221095ec2df (patch)
tree52f41ee2cdc5442eb4e4ca3130573839418c0ebd /engines/lure/fights.cpp
parentd0d454c5dad04ccaec5e42d8999bd72150c0e544 (diff)
downloadscummvm-rg350-8ff665c58f0c49fcd3b21b6858f64221095ec2df.tar.gz
scummvm-rg350-8ff665c58f0c49fcd3b21b6858f64221095ec2df.tar.bz2
scummvm-rg350-8ff665c58f0c49fcd3b21b6858f64221095ec2df.zip
Replaced incorrect key constants being used for fight commands
svn-id: r29166
Diffstat (limited to 'engines/lure/fights.cpp')
-rw-r--r--engines/lure/fights.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/lure/fights.cpp b/engines/lure/fights.cpp
index 836c109ca7..d74047d162 100644
--- a/engines/lure/fights.cpp
+++ b/engines/lure/fights.cpp
@@ -72,7 +72,7 @@ void FightsManager::setupPigFight() {
player->resource()->colourOffset = 16;
player->setTickProc(PLAYER_FIGHT_TICK_PROC_ID);
player->setSize(48, 53);
- player->setAnimation(PLAYER_FIGHT_ANIM_ID);
+ player->setAnimationIndex(PLAYER_FIGHT_ANIM_INDEX);
player->resource()->width = 48;
player->resource()->height = 53;
@@ -159,8 +159,10 @@ struct KeyMapping {
};
const KeyMapping keyList[] = {
- {Common::KEYCODE_LEFT, 10}, {Common::KEYCODE_RIGHT, 14}, {Common::KEYCODE_7, 11}, {Common::KEYCODE_4, 12},
- {Common::KEYCODE_1, 13}, {Common::KEYCODE_9, 6}, {Common::KEYCODE_6, 7}, {Common::KEYCODE_3, 8}, {Common::KEYCODE_INVALID, 0}};
+ {Common::KEYCODE_LEFT, 10}, {Common::KEYCODE_RIGHT, 14},
+ {Common::KEYCODE_KP7, 11}, {Common::KEYCODE_KP4, 12}, {Common::KEYCODE_KP1, 13},
+ {Common::KEYCODE_KP9, 6}, {Common::KEYCODE_KP6, 7}, {Common::KEYCODE_KP3, 8},
+ {Common::KEYCODE_INVALID, 0}};
void FightsManager::checkEvents() {
Events &events = Events::getReference();
@@ -556,7 +558,7 @@ void FightsManager::enemyKilled() {
playerHotspot->setSize(32, 48);
playerHotspot->resource()->width = 32;
playerHotspot->resource()->height = 48;
- playerHotspot->setAnimation(PLAYER_ANIM_ID);
+ playerHotspot->setAnimationIndex(PLAYER_ANIM_INDEX);
playerHotspot->setPosition(playerHotspot->x(), playerHotspot->y() + 5);
playerHotspot->setDirection(LEFT);