Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/boards
diff options
context:
space:
mode:
authorBruno Coudoin <bcoudoin@src.gnome.org>2008-11-18 00:51:02 (GMT)
committer Bruno Coudoin <bcoudoin@src.gnome.org>2008-11-18 00:51:02 (GMT)
commite4d43c227ea38090c77bbbc83afa241e4f0b6725 (patch)
treedd0b146c91071c26fc091b7ea9872e22f6a10f65 /src/boards
parent5d69b60752702aac869e4f5e205ad5fee2e9e9c6 (diff)
double crash protection.
svn path=/trunk/; revision=3619
Diffstat (limited to 'src/boards')
-rw-r--r--src/boards/submarine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/boards/submarine.c b/src/boards/submarine.c
index cb88b92..a66be02 100644
--- a/src/boards/submarine.c
+++ b/src/boards/submarine.c
@@ -1641,6 +1641,9 @@ static void open_door()
static void submarine_explosion() {
GdkPixbuf *pixmap = NULL;
+ if (submarine_destroyed)
+ return;
+
submarine_destroyed = TRUE;
gamewon = FALSE;
gc_sound_play_ogg("sounds/crash.wav", NULL);