tBasic sound support added to text-mode client. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8a1e8e646ed67ef51d33792f96274b7667f9e054
(DIR) parent f3f5059e5e96862af2fb43e803bea8a3fd465840
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Sat, 4 May 2002 17:48:49 +0000
Basic sound support added to text-mode client.
Diffstat:
M src/curses_client/curses_client.c | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/src/curses_client/curses_client.c b/src/curses_client/curses_client.c
t@@ -40,6 +40,7 @@
#include "message.h"
#include "nls.h"
#include "serverside.h"
+#include "sound.h"
#include "tstring.h"
static void PrepareHighScoreScreen(void);
t@@ -1042,6 +1043,7 @@ void HandleClientMessage(char *Message, Player *Play)
tmp = (Player *)list->data;
tmp->Flags &= ~FIGHTING;
}
+ SoundPlay(Sounds.Jet);
for (i = 0; i < 4; i++) {
print_location(_("S U B W A Y"));
refresh();
t@@ -2404,6 +2406,8 @@ void CursesLoop(void)
LogMask() | G_LOG_LEVEL_MESSAGE | G_LOG_LEVEL_WARNING,
LogMessage, NULL);
+ SoundOpen(NULL);
+
display_intro();
Play = g_new(Player, 1);