diff options
author | Max Horn | 2005-04-16 23:31:02 +0000 |
---|---|---|
committer | Max Horn | 2005-04-16 23:31:02 +0000 |
commit | 08424bf6dbb97d65c15f8422d425d523d103a35d (patch) | |
tree | 9b5638b12040807aabfe520b999fa384b978194f | |
parent | 44acfd9467e126d324a6ac730dccedd30c916480 (diff) | |
download | scummvm-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.cpp | 7 |
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: |