aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2007-06-16 11:35:29 +0000
committerTravis Howell2007-06-16 11:35:29 +0000
commit5b7d2d2f10c080abefe9604929e17c522dc724eb (patch)
treec9e98eb4c42b1f8ca8021e9bca81eb87f3ac2401 /engines
parent860f9613b5ae9c1b820f76631aef5bc4e402f9dc (diff)
downloadscummvm-rg350-5b7d2d2f10c080abefe9604929e17c522dc724eb.tar.gz
scummvm-rg350-5b7d2d2f10c080abefe9604929e17c522dc724eb.tar.bz2
scummvm-rg350-5b7d2d2f10c080abefe9604929e17c522dc724eb.zip
Add code difference in Amiga versions, when selecting character.
svn-id: r27462
Diffstat (limited to 'engines')
-rw-r--r--engines/parallaction/menu.cpp31
1 files changed, 22 insertions, 9 deletions
diff --git a/engines/parallaction/menu.cpp b/engines/parallaction/menu.cpp
index 651879ce2a..cffd452e8f 100644
--- a/engines/parallaction/menu.cpp
+++ b/engines/parallaction/menu.cpp
@@ -88,9 +88,13 @@ const char *loadGameMsg[] = {
#define SLOT_WIDTH (BLOCK_WIDTH+2)
-static uint16 _dinoKey[] = { 5, 3, 6, 1, 4, 7 }; //
-static uint16 _donnaKey[] = { 0, 2, 8, 5, 5, 1 };
-static uint16 _doughKey[] = { 1, 7 ,7, 2, 2, 6 };
+static uint16 _amigaDinoKey[] = { 5, 3, 6, 2, 2, 7 };
+static uint16 _amigaDonnaKey[] = { 0, 3, 6, 2, 2, 6 };
+static uint16 _amigaDoughKey[] = { 1, 3 ,7, 2, 4, 6 };
+
+static uint16 _pcDinoKey[] = { 5, 3, 6, 1, 4, 7 };
+static uint16 _pcDonnaKey[] = { 0, 2, 8, 5, 5, 1 };
+static uint16 _pcDoughKey[] = { 1, 7 ,7, 2, 2, 6 };
Menu::Menu(Parallaction *vm) {
@@ -382,12 +386,21 @@ void Menu::selectCharacter() {
// beep();
- if (_dinoKey[_di] == _si)
- _dino_points++; // dino
- if (_donnaKey[_di] == _si)
- _donna_points++; // donna
- if (_doughKey[_di] == _si)
- _dough_points++; // dough
+ if (_vm->getPlatform() == Common::kPlatformAmiga) {
+ if (_amigaDinoKey[_di] == _si)
+ _dino_points++; // dino
+ if (_amigaDonnaKey[_di] == _si)
+ _donna_points++; // donna
+ if (_amigaDoughKey[_di] == _si)
+ _dough_points++; // dough
+ } else {
+ if (_pcDinoKey[_di] == _si)
+ _dino_points++; // dino
+ if (_pcDonnaKey[_di] == _si)
+ _donna_points++; // donna
+ if (_pcDoughKey[_di] == _si)
+ _dough_points++; // dough
+ }
_di++;
}