aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-06-21 06:37:00 +0000
committerTravis Howell2007-06-21 06:37:00 +0000
commit00829f15c87689e649489ec4d97c78d8b8748f83 (patch)
treed61352a43056c44e16eac710129254173ee5d427 /engines/agos/script.cpp
parentd2e7058b59e8f3a26f8e2fdbfd104749854ce950 (diff)
downloadscummvm-rg350-00829f15c87689e649489ec4d97c78d8b8748f83.tar.gz
scummvm-rg350-00829f15c87689e649489ec4d97c78d8b8748f83.tar.bz2
scummvm-rg350-00829f15c87689e649489ec4d97c78d8b8748f83.zip
Minor cleanup.
svn-id: r27580
Diffstat (limited to 'engines/agos/script.cpp')
-rw-r--r--engines/agos/script.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/agos/script.cpp b/engines/agos/script.cpp
index d083e0251b..c5cf6c5872 100644
--- a/engines/agos/script.cpp
+++ b/engines/agos/script.cpp
@@ -156,7 +156,7 @@ void AGOSEngine::o_gtf() {
void AGOSEngine::o_chance() {
// 23: chance
- uint a = getVarOrWord();
+ int16 a = getVarOrWord();
if (a == 0) {
setScriptCondition(false);
@@ -173,7 +173,7 @@ void AGOSEngine::o_chance() {
if (a <= 0) {
_chanceModifier = 0;
setScriptCondition(false);
- } else if ((uint)_rnd.getRandomNumber(99) < a) {
+ } else if ((int16)_rnd.getRandomNumber(99) < a) {
if (_chanceModifier <= 0)
_chanceModifier -= 5;
else
@@ -410,7 +410,7 @@ void AGOSEngine::o_process() {
void AGOSEngine::o_when() {
// 76: add timeout
- uint timeout = getVarOrWord();
+ uint16 timeout = getVarOrWord();
addTimeEvent(timeout, getVarOrWord());
}
@@ -894,7 +894,7 @@ uint AGOSEngine::getNextVarContents() {
return (uint16)readVariable(getVarWrapper());
}
-uint AGOSEngine::readVariable(uint variable) {
+uint AGOSEngine::readVariable(uint16 variable) {
if (variable >= _numVars)
error("readVariable: Variable %d out of range", variable);
@@ -914,7 +914,7 @@ void AGOSEngine::writeNextVarContents(uint16 contents) {
writeVariable(getVarWrapper(), contents);
}
-void AGOSEngine::writeVariable(uint variable, uint16 contents) {
+void AGOSEngine::writeVariable(uint16 variable, uint16 contents) {
if (variable >= _numVars)
error("writeVariable: Variable %d out of range", variable);
@@ -1009,7 +1009,7 @@ void AGOSEngine::stopAnimate(uint16 a) {
}
void AGOSEngine::waitForSync(uint a) {
- const uint maxCount = (getGameType() == GType_SIMON1) ? 500 : 1000;
+ const uint maxCount = (getGameType() == GType_SIMON1) ? 1000 : 2500;
if (getGameType() == GType_SIMON1 && (getFeatures() & GF_TALKIE)) {
if (a != 200) {