projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug causing access to negative array index
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index 2f57bf51cc7f32a6aee74dc3e04f5c3c5dd10fb3..6d07ec5489b05a0a8cec073449b8bd2af0e6eed3 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-4186,11
+4186,6
@@
void InitGame()
OpenDoor(DOOR_OPEN_ALL);
OpenDoor(DOOR_OPEN_ALL);
- PlaySound(SND_GAME_STARTING);
-
- if (setup.sound_music)
- PlayLevelMusic();
-
KeyboardAutoRepeatOffUnlessAutoplay();
#if DEBUG_INIT_PLAYER
KeyboardAutoRepeatOffUnlessAutoplay();
#if DEBUG_INIT_PLAYER
@@
-4236,6
+4231,14
@@
void InitGame()
InitGameActions_MM();
SaveEngineSnapshotToListInitial();
InitGameActions_MM();
SaveEngineSnapshotToListInitial();
+
+ if (!game.restart_level)
+ {
+ PlaySound(SND_GAME_STARTING);
+
+ if (setup.sound_music)
+ PlayLevelMusic();
+ }
}
void UpdateEngineValues(int actual_scroll_x, int actual_scroll_y,
}
void UpdateEngineValues(int actual_scroll_x, int actual_scroll_y,