aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorMax Horn2002-10-31 01:55:11 +0000
committerMax Horn2002-10-31 01:55:11 +0000
commitd7123f49085244405b059dcdd24de43495cafcbc (patch)
tree0ef862d23c4a0e70b3e8c7885ee049bb9c97de2d /simon
parentb43410e6f6d855f1a42b6ce783d0c76df8f6632b (diff)
downloadscummvm-rg350-d7123f49085244405b059dcdd24de43495cafcbc.tar.gz
scummvm-rg350-d7123f49085244405b059dcdd24de43495cafcbc.tar.bz2
scummvm-rg350-d7123f49085244405b059dcdd24de43495cafcbc.zip
hopeyfully this fixes simon2dos
svn-id: r5361
Diffstat (limited to 'simon')
-rw-r--r--simon/items.cpp2
-rw-r--r--simon/simon.cpp10
-rw-r--r--simon/simon.h6
3 files changed, 9 insertions, 9 deletions
diff --git a/simon/items.cpp b/simon/items.cpp
index d173032d85..cf044e2991 100644
--- a/simon/items.cpp
+++ b/simon/items.cpp
@@ -1322,7 +1322,7 @@ void SimonState::o_177()
talk_with_text(a, b, s, tv->a, tv->b, tv->c);
}
- } else if (_game == GAME_SIMON2WIN || _game == GAME_SIMON2DOS) {
+ } else if (_game & GAME_SIMON2) {
uint a = getVarOrByte();
uint b = getVarOrByte();
Child2 *child = (Child2 *)findChildOfType(getNextItemPtr(), 2);
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 529e5a2c2a..7feb51c21c 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -4941,10 +4941,13 @@ void SimonState::playMusic(uint music)
midi.initialize();
midi.play();
- } else {
+ } else if (!(_game & GAME_SIMON2)){
midi.shutdown();
- if (_game == GAME_SIMON1DOS) {
+ if (_game & GAME_WIN) {
+ _game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music], SEEK_SET);
+ midi.read_all_songs_old(_game_file);
+ } else {
char buf[50];
File *f = new File();
sprintf(buf, "MOD%d.MUS", music);
@@ -4955,9 +4958,6 @@ void SimonState::playMusic(uint music)
}
midi.read_all_songs_old(f);
delete f;
- } else if (_game == GAME_SIMON1WIN) {
- _game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music], SEEK_SET);
- midi.read_all_songs_old(_game_file);
}
midi.initialize();
diff --git a/simon/simon.h b/simon/simon.h
index 9d6d367826..5d808dec10 100644
--- a/simon/simon.h
+++ b/simon/simon.h
@@ -116,9 +116,9 @@ public:
GAME_WIN = 2,
GAME_SIMON1DOS = 0,
- GAME_SIMON1WIN = 2,
- GAME_SIMON2DOS = 1,
- GAME_SIMON2WIN = 3,
+ GAME_SIMON1WIN = GAME_WIN,
+ GAME_SIMON2DOS = GAME_SIMON2,
+ GAME_SIMON2WIN = GAME_SIMON2 + GAME_WIN,
GAME_SIMON1DEMO = 4,
};