tSounds should now be played on receipt of player chat messages. - vaccinewars … | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit f3f5059e5e96862af2fb43e803bea8a3fd465840 | |
parent d5b5c2968ece3a03f95623266d220c48b626cc84 | |
Author: Ben Webb <[email protected]> | |
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(-) | |
--- | |
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); |