[Scummvm-cvs-logs] SF.net SVN: scummvm: [27462] scummvm/trunk/engines/parallaction/menu.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Sat Jun 16 13:35:31 CEST 2007
Revision: 27462
http://scummvm.svn.sourceforge.net/scummvm/?rev=27462&view=rev
Author: Kirben
Date: 2007-06-16 04:35:29 -0700 (Sat, 16 Jun 2007)
Log Message:
-----------
Add code difference in Amiga versions, when selecting character.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/menu.cpp
Modified: scummvm/trunk/engines/parallaction/menu.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/menu.cpp 2007-06-16 11:28:07 UTC (rev 27461)
+++ scummvm/trunk/engines/parallaction/menu.cpp 2007-06-16 11:35:29 UTC (rev 27462)
@@ -88,11 +88,15 @@
#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) {
_vm = vm;
@@ -382,12 +386,21 @@
// 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++;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list