UA Ltd and SUPERbanking couldn't be selected as bankswitching types in the game properties dialog, because some counter variables hadn't been updated from 21 to 23. Maybe we should use a constant instead?

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1406 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
estolberg 2008-02-24 20:02:09 +00:00
parent 4d9cdbc56a
commit 3882e8e841
1 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of // See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES. // this file, and for a DISCLAIMER OF ALL WARRANTIES.
// //
// $Id: GameInfoDialog.cxx,v 1.46 2008-02-06 13:45:23 stephena Exp $ // $Id: GameInfoDialog.cxx,v 1.47 2008-02-24 20:02:09 estolberg Exp $
// //
// Based on code from ScummVM - Scumm Interpreter // Based on code from ScummVM - Scumm Interpreter
// Copyright (C) 2002-2004 The ScummVM project // Copyright (C) 2002-2004 The ScummVM project
@ -387,12 +387,12 @@ void GameInfoDialog::loadView()
mySound->setSelectedTag(0); mySound->setSelectedTag(0);
s = myGameProperties.get(Cartridge_Type); s = myGameProperties.get(Cartridge_Type);
for(i = 0; i < 21; ++i) for(i = 0; i < 23; ++i)
{ {
if(s == ourCartridgeList[i][1]) if(s == ourCartridgeList[i][1])
break; break;
} }
i = (i == 21) ? 0: i + 1; i = (i == 23) ? 0: i + 1;
myType->setSelectedTag(i); myType->setSelectedTag(i);
// Console properties // Console properties
@ -539,7 +539,7 @@ void GameInfoDialog::saveConfig()
myGameProperties.set(Cartridge_Sound, s); myGameProperties.set(Cartridge_Sound, s);
tag = myType->getSelectedTag(); tag = myType->getSelectedTag();
for(i = 0; i < 21; ++i) for(i = 0; i < 23; ++i)
{ {
if(i == tag-1) if(i == tag-1)
{ {