aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agos/script.cpp')
-rw-r--r--engines/agos/script.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/agos/script.cpp b/engines/agos/script.cpp
index 1e894474f7..802db3fdd9 100644
--- a/engines/agos/script.cpp
+++ b/engines/agos/script.cpp
@@ -248,7 +248,17 @@ void AGOSEngine::o_clear() {
void AGOSEngine::o_let() {
// 42: set var
uint var = getVarWrapper();
- writeVariable(var, getVarOrWord());
+ uint value = getVarOrWord();
+
+ if (getGameType() == GType_FF && _currentTable) {
+ // WORKAROUND: When the repair man comes to fix the car, the game doesn't
+ // wait long enough for the screen to completely scroll to the left side.
+ if (_currentTable->id == 20438 && var == 103 && value == 60) {
+ value = 71;
+ }
+ }
+
+ writeVariable(var, value);
}
void AGOSEngine::o_add() {