MADS: Rename "interface" variable to "idx".

interface is #define'd on WinCE and breaks compilation. We might want to
undefine it in the future to prevent these pitfalls.
This commit is contained in:
Johannes Schickel 2016-01-11 13:47:34 +01:00
parent 60443e49e8
commit 34e8e9a876

View File

@ -32,35 +32,35 @@ namespace MADS {
namespace Dragonsphere { namespace Dragonsphere {
void Scene1xx::setAAName() { void Scene1xx::setAAName() {
int interface; int idx;
switch (_scene->_nextSceneId) { switch (_scene->_nextSceneId) {
case 108: case 108:
case 109: case 109:
interface = 3; idx = 3;
break; break;
case 110: case 110:
interface = 5; idx = 5;
break; break;
case 113: case 113:
case 114: case 114:
case 115: case 115:
case 117: case 117:
case 119: case 119:
interface = 1; idx = 1;
break; break;
case 116: case 116:
interface = 2; idx = 2;
break; break;
case 120: case 120:
interface = 8; idx = 8;
break; break;
default: default:
interface = 0; idx = 0;
break; break;
} }
_game._aaName = Resources::formatAAName(interface); _game._aaName = Resources::formatAAName(idx);
_vm->_palette->setEntry(254, 56, 47, 32); _vm->_palette->setEntry(254, 56, 47, 32);
} }