From 4e7829de5301d48af4c21f491cb6c1187d6fbd18 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Sun, 24 Jan 2021 02:42:37 +0100 Subject: [PATCH] Plugin-VoxAnnouncer: Include events.h to properly choose the vox-say event id --- src/plugins/voxannouncer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/voxannouncer.c b/src/plugins/voxannouncer.c index 85448425..abd3ae89 100644 --- a/src/plugins/voxannouncer.c +++ b/src/plugins/voxannouncer.c @@ -14,11 +14,13 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include "../shared/events.h" + void VoxFunc(string strMessage) { WriteByte(MSG_MULTICAST, SVC_CGAMEPACKET); - WriteByte(MSG_MULTICAST, 27); + WriteByte(MSG_MULTICAST, EV_CHAT_VOX); WriteString(MSG_MULTICAST, strMessage); msg_entity = world; multicast([0,0,0], MULTICAST_ALL);