aboutsummaryrefslogtreecommitdiff
path: root/sword1/sword1.cpp
diff options
context:
space:
mode:
authorRobert Göffringmann2004-11-15 02:48:30 +0000
committerRobert Göffringmann2004-11-15 02:48:30 +0000
commit183a11153e680a1b6cd399da09deff7a690304dc (patch)
treee92ebc67ceedab484b02215b3c9761d88288bd29 /sword1/sword1.cpp
parent0b3949389e9f7a48023894174d5e8e19286c199a (diff)
downloadscummvm-rg350-183a11153e680a1b6cd399da09deff7a690304dc.tar.gz
scummvm-rg350-183a11153e680a1b6cd399da09deff7a690304dc.tar.bz2
scummvm-rg350-183a11153e680a1b6cd399da09deff7a690304dc.zip
BS1 demo's speech and logic work now.
But there's something wrong with the SFX, which can lead to crashes. svn-id: r15813
Diffstat (limited to 'sword1/sword1.cpp')
-rw-r--r--sword1/sword1.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp
index 82aa029f85..f9cbb2115d 100644
--- a/sword1/sword1.cpp
+++ b/sword1/sword1.cpp
@@ -1095,6 +1095,7 @@ void SwordEngine::checkCdFiles(void) { // check if we're running from cd, hdd or
File test;
_systemVars.playSpeech = true;
+ _systemVars.isDemo = false;
for (int i = 1; i <= 2; i++) {
for (int j = 0; j < ARRAYSIZE(speechFiles); j++) {
@@ -1113,6 +1114,10 @@ void SwordEngine::checkCdFiles(void) { // check if we're running from cd, hdd or
_systemVars.runningFromCd = false;
_systemVars.playSpeech = true;
} else { // speech1 & speech2 not present. are we running from cd?
+ if (test.open("cows.mad")) {
+ _systemVars.isDemo = true;
+ test.close();
+ }
if (test.open("cd1.id")) {
_systemVars.runningFromCd = true;
_systemVars.currentCD = 1;