diff options
Diffstat (limited to 'engines/lastexpress/entities')
-rw-r--r-- | engines/lastexpress/entities/anna.cpp | 2 | ||||
-rw-r--r-- | engines/lastexpress/entities/ivo.cpp | 2 | ||||
-rw-r--r-- | engines/lastexpress/entities/milos.cpp | 2 | ||||
-rw-r--r-- | engines/lastexpress/entities/salko.cpp | 2 | ||||
-rw-r--r-- | engines/lastexpress/entities/vesna.cpp | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/engines/lastexpress/entities/anna.cpp b/engines/lastexpress/entities/anna.cpp index 784a985b45..2126c1b499 100644 --- a/engines/lastexpress/entities/anna.cpp +++ b/engines/lastexpress/entities/anna.cpp @@ -3200,7 +3200,7 @@ IMPLEMENT_FUNCTION(64, Anna, baggage) if (params->param1) getLogic()->gameOver(kSavegameTypeIndex, 0, kSceneNone, params->param1 == Fight::kFightEndLost); else { - getState()->time += 1800; + getState()->time = (TimeValue)(getState()->time + 1800); setCallback(3); setup_savegame(kSavegameTypeEvent, kEventAnnaBagagePart2); diff --git a/engines/lastexpress/entities/ivo.cpp b/engines/lastexpress/entities/ivo.cpp index f689a1c2ca..6bee62f003 100644 --- a/engines/lastexpress/entities/ivo.cpp +++ b/engines/lastexpress/entities/ivo.cpp @@ -802,7 +802,7 @@ IMPLEMENT_FUNCTION(33, Ivo, function33) break; case kActionDefault: - getState()->time += 1800; + getState()->time = (TimeValue)(getState()->time + 1800); setCallback(1); setup_savegame(kSavegameTypeTime, kTimeNone); diff --git a/engines/lastexpress/entities/milos.cpp b/engines/lastexpress/entities/milos.cpp index fd99084cf8..6783ae7416 100644 --- a/engines/lastexpress/entities/milos.cpp +++ b/engines/lastexpress/entities/milos.cpp @@ -618,7 +618,7 @@ label_callback_12: if (params->param8) { getLogic()->gameOver(kSavegameTypeIndex, 0, kSceneNone, params->param8 == Fight::kFightEndLost); } else { - getState()->time += 1800; + getState()->time = (TimeValue)(getState()->time + 1800); getProgress().field_CC = 1; setCallback(getCallback() + 1); diff --git a/engines/lastexpress/entities/salko.cpp b/engines/lastexpress/entities/salko.cpp index 27538ae15c..cddbc9005d 100644 --- a/engines/lastexpress/entities/salko.cpp +++ b/engines/lastexpress/entities/salko.cpp @@ -611,7 +611,7 @@ IMPLEMENT_FUNCTION(24, Salko, chapter5Handler) params->param1 = getFight()->setup(kFightSalko); if (params->param1 == Fight::kFightEndWin) { - getState()->time += 1800; + getState()->time = (TimeValue)(getState()->time + 1800); setCallback(3); setup_savegame(kSavegameTypeEvent, kEventCathSalkoTrainTopWin); } else { diff --git a/engines/lastexpress/entities/vesna.cpp b/engines/lastexpress/entities/vesna.cpp index fecf322a51..531c74b1d7 100644 --- a/engines/lastexpress/entities/vesna.cpp +++ b/engines/lastexpress/entities/vesna.cpp @@ -1122,7 +1122,7 @@ IMPLEMENT_FUNCTION(30, Vesna, function30) } else { getSound()->playSound(kEntityPlayer, "TUNNEL"); - getState()->time += 1800; + getState()->time = (TimeValue)(getState()->time + 1800); setCallback(5); setup_savegame(kSavegameTypeEvent, kEventCathVesnaTrainTopWin); |