[Scummvm-git-logs] scummvm master -> 63f1b310bbf63c9e0e0dcc5774206a40bc069d61
dreammaster
dreammaster at scummvm.org
Fri Nov 24 20:33:20 CET 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
63f1b310bb XEEN: Extra comments for trainer level caps
Commit: 63f1b310bbf63c9e0e0dcc5774206a40bc069d61
https://github.com/scummvm/scummvm/commit/63f1b310bbf63c9e0e0dcc5774206a40bc069d61
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-11-24T14:33:12-05:00
Commit Message:
XEEN: Extra comments for trainer level caps
Changed paths:
engines/xeen/scripts.cpp
engines/xeen/town.cpp
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp
index cb49586..2815c61 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 ac1fc1e..02e0990 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;
}
More information about the Scummvm-git-logs
mailing list