diff options
author | NoCatt <86153630+NoCatt@users.noreply.github.com> | 2023-01-08 02:40:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-08 01:40:10 +0000 |
commit | 26e49bdf49689f64453a398a3a76f7e44946e20c (patch) | |
tree | a3d5733a4a9877cbdca1a26d2237572b72337d6d | |
parent | ffac4617f33d3a2f595276e7d393e0957d68ae06 (diff) | |
download | NorthstarMods-26e49bdf49689f64453a398a3a76f7e44946e20c.tar.gz NorthstarMods-26e49bdf49689f64453a398a3a76f7e44946e20c.zip |
Fix server chat messages being send twice when watching a replay (#555)
* fixes chat messages being send twice
* OCD is a real issue
-rw-r--r-- | Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut b/Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut index 811874c5..277ed030 100644 --- a/Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut +++ b/Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut @@ -22,6 +22,10 @@ struct { } NsCustomCallbacksClient void function OnReceivedMessage(ClClient_MessageStruct localMessage) { + + if ( IsWatchingReplay() ) + return + if (localMessage.player != null) { foreach (callbackFunc in NsCustomCallbacksClient.OnReceivedSayTextMessageCallbacks) |