Switch to case

svn-id: r14712
This commit is contained in:
Travis Howell 2004-08-23 10:52:10 +00:00
parent d8aa922695
commit d35660a6cb
2 changed files with 12 additions and 11 deletions

View File

@ -654,8 +654,6 @@ protected:
virtual void executeOpcode(byte i);
virtual const char *getOpcodeDesc(byte i);
byte stringLen(byte *);
/* Version 7 script opcodes */
void o7_getString();
void o7_objectX();

View File

@ -3255,17 +3255,20 @@ Engine *Engine_SCUMM_create(GameDetector *detector, OSystem *syst) {
engine = new ScummEngine_v5(detector, syst, game);
break;
case 6:
if (game.heversion >= 60) {
// TODO: probably use another variable with version number
switch (game.heversion) {
#ifndef __PALM_OS__
if (game.heversion >= 72)
engine = new ScummEngine_v72he(detector, syst, game);
else if (game.heversion >= 70)
engine = new ScummEngine_v7he(detector, syst, game);
else
case 72:
engine = new ScummEngine_v72he(detector, syst, game);
break;
case 71:
case 70:
engine = new ScummEngine_v7he(detector, syst, game);
break;
#endif
engine = new ScummEngine_v6he(detector, syst, game);
} else {
case 60:
engine = new ScummEngine_v6he(detector, syst, game);
break;
default:
engine = new ScummEngine_v6(detector, syst, game);
}
break;