aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2005-04-16 23:31:02 +0000
committerMax Horn2005-04-16 23:31:02 +0000
commit08424bf6dbb97d65c15f8422d425d523d103a35d (patch)
tree9b5638b12040807aabfe520b999fa384b978194f
parent44acfd9467e126d324a6ac730dccedd30c916480 (diff)
downloadscummvm-rg350-08424bf6dbb97d65c15f8422d425d523d103a35d.tar.gz
scummvm-rg350-08424bf6dbb97d65c15f8422d425d523d103a35d.tar.bz2
scummvm-rg350-08424bf6dbb97d65c15f8422d425d523d103a35d.zip
Hack to get the CD version to play even if no CD track is present
svn-id: r17641
-rw-r--r--gob/inter.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/gob/inter.cpp b/gob/inter.cpp
index e56c5aefe8..6a197b7902 100644
--- a/gob/inter.cpp
+++ b/gob/inter.cpp
@@ -420,7 +420,12 @@ void inter_drawOperations(void) {
case 33:
// Used in gob1 CD
- WRITE_VAR(5, cd_getTrackPos());
+ {
+ int pos = cd_getTrackPos();
+ if (pos == -1)
+ pos = 32767;
+ WRITE_VAR(5, pos);
+ }
break;
case 34: