aboutsummaryrefslogtreecommitdiff
path: root/gob/scenery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gob/scenery.cpp')
-rw-r--r--gob/scenery.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gob/scenery.cpp b/gob/scenery.cpp
index ac3d9a50d6..2de9587cf8 100644
--- a/gob/scenery.cpp
+++ b/gob/scenery.cpp
@@ -29,6 +29,7 @@
#include "gob/util.h"
#include "gob/anim.h"
#include "gob/parse.h"
+#include "gob/cdrom.h"
namespace Gob {
@@ -383,6 +384,12 @@ int16 scen_loadAnim(char search) {
int16 sprResId;
int16 sprIndex;
+ if (cd_globFlag) {
+ while (cd_getTrackPos() != -1);
+
+ cd_globFlag = false;
+ }
+
inter_evalExpr(&sceneryIndex);
picsCount = inter_load16();
resId = inter_load16();