From abf44fd785c2db838c9fc5fb88ca748900cdf49d Mon Sep 17 00:00:00 2001
From: "p.kosyh"
Date: Sun, 4 Oct 2009 17:53:23 +0000
Subject: [PATCH] small cleanup in sound/music handling
---
src/sdl-instead/game.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/sdl-instead/game.c b/src/sdl-instead/game.c
index 69db63d..c2f1ab9 100644
--- a/src/sdl-instead/game.c
+++ b/src/sdl-instead/game.c
@@ -1146,11 +1146,13 @@ int game_cmd(char *cmd)
img_t oldscreen = NULL;
cmdstr = instead_cmd(cmd);
- if (!cmdstr)
- goto inv; /* hackish? ok, yes it is... */
// goto err;
game_music_player();
game_sound_player();
+
+ if (!cmdstr)
+ goto inv; /* hackish? ok, yes it is... */
+
title = instead_eval("return get_title();");
unix_path(title);
if (title) {