tSounds should now be played on receipt of player chat messages. - 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 f3f5059e5e96862af2fb43e803bea8a3fd465840
(DIR) parent d5b5c2968ece3a03f95623266d220c48b626cc84
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Sat, 4 May 2002 17:47:24 +0000
Sounds should now be played on receipt of player chat messages.
Diffstat:
M src/gui_client/gtk_client.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/src/gui_client/gtk_client.c b/src/gui_client/gtk_client.c
t@@ -459,12 +459,14 @@ void HandleClientMessage(char *pt, Player *Play)
text = g_strdup_printf("%s: %s", GetPlayerName(From), Data);
PrintMessage(text, "talk");
g_free(text);
+ SoundPlay(Sounds.TalkToAll);
break;
case C_MSGTO:
text = g_strdup_printf("%s->%s: %s", GetPlayerName(From),
GetPlayerName(Play), Data);
PrintMessage(text, "page");
g_free(text);
+ SoundPlay(Sounds.TalkPrivate);
break;
case C_JOIN:
text = g_strdup_printf(_("%s joins the game!"), Data);