about summary refs log tree commit diff
path: root/src/game/client/gc_hooks.cpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-22 11:45:48 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-22 11:45:48 +0000
commit7797a651676ec47ab79222210f50c5aa4da80d7f (patch)
tree41bbd5f147fe6afc250522266abc4d7d6e2a270c /src/game/client/gc_hooks.cpp
parentbede40f27d36f71014d7f4f3a1f1ae14f52caf0c (diff)
downloadzcatch-7797a651676ec47ab79222210f50c5aa4da80d7f.tar.gz
zcatch-7797a651676ec47ab79222210f50c5aa4da80d7f.zip
changed the bindings commands to bind, unbind and dump_binds. added broadcast messages. fixed so that cl_editor works
Diffstat (limited to 'src/game/client/gc_hooks.cpp')
-rw-r--r--src/game/client/gc_hooks.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/client/gc_hooks.cpp b/src/game/client/gc_hooks.cpp
index 5477edd5..54b8715d 100644
--- a/src/game/client/gc_hooks.cpp
+++ b/src/game/client/gc_hooks.cpp
@@ -524,6 +524,12 @@ extern "C" void modc_message(int msgtype)
 		else
 			snd_play(CHN_GUI, data->sounds[SOUND_CHAT_SERVER].sounds[0].id, 0);
 	}
+	else if(msgtype == NETMSGTYPE_SV_BROADCAST)
+	{
+		NETMSG_SV_BROADCAST *msg = (NETMSG_SV_BROADCAST *)rawmsg;
+		str_copy(broadcast_text, msg->message, sizeof(broadcast_text));
+		broadcast_time = time_get();
+	}
 	else if(msgtype == NETMSGTYPE_SV_MOTD)
 	{
 		NETMSG_SV_MOTD *msg = (NETMSG_SV_MOTD *)rawmsg;