From 7f92551d5ae5ef42631e632155dd9baae5699048 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Sat, 30 Dec 2023 13:21:36 +0100 Subject: [PATCH] port: net: don't create hudmsgs for other players --- src/game/hudmsg.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/game/hudmsg.c b/src/game/hudmsg.c index fd0cd30d7..5155772c9 100644 --- a/src/game/hudmsg.c +++ b/src/game/hudmsg.c @@ -987,6 +987,13 @@ void hudmsgCreateFromArgs(char *text, s32 type, s32 conf00, s32 conf01, s32 conf return; } +#ifndef PLATFORM_N64 + if (g_NetMode && g_Vars.currentplayernum != 0) { + // do not create hudmsgs for other net players + return; + } +#endif + for (j = 0; text[j] != '\0'; j++) { hash = hash + text[j]; }