diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/xeen/scripts.cpp | 2 | ||||
-rw-r--r-- | engines/xeen/town.cpp | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index cb49586d54..2815c617bd 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -370,7 +370,7 @@ bool Scripts::doOpcode(MazeEvent &event) { _event = &event; // Some opcodes use the first parameter as a message - int msgId = event._parameters.empty() ? 0 : event._parameters[0]; + uint msgId = event._parameters.empty() ? 0 : event._parameters[0]; _message = msgId >= map._events._text.size() ? "" : map._events._text[msgId]; // Execute the opcode diff --git a/engines/xeen/town.cpp b/engines/xeen/town.cpp index ac1fc1edbb..02e0990e96 100644 --- a/engines/xeen/town.cpp +++ b/engines/xeen/town.cpp @@ -432,27 +432,34 @@ Common::String Town::createTownText(Character &ch) { if (_vm->_files->_isDarkCc) { switch (party._mazeId) { case 29: + // Castleview _maxLevel = 30; break; case 31: + // Sandcaster _maxLevel = 50; break; case 37: + // Olympus _maxLevel = 200; break; default: + // Kalindra's Castle _maxLevel = 100; break; } } else { switch (party._mazeId) { case 28: + // Vertigo _maxLevel = 10; break; case 30: + // Rivercity _maxLevel = 15; break; default: + // Newcastle _maxLevel = 20; break; } |