From 7d1fc5862e5ae948e5baa00507a4576764577292 Mon Sep 17 00:00:00 2001 From: Emma Miler <27428383+emma-miler@users.noreply.github.com> Date: Tue, 8 Feb 2022 02:42:52 +0100 Subject: Fixed typo --- .../mod/scripts/vscripts/_custom_codecallbacks.gnut | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Northstar.CustomServers/mod/scripts') diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_custom_codecallbacks.gnut b/Northstar.CustomServers/mod/scripts/vscripts/_custom_codecallbacks.gnut index b535f327..7f102f6e 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/_custom_codecallbacks.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/_custom_codecallbacks.gnut @@ -10,15 +10,15 @@ global struct ClServer_MessageStruct { } struct { - array< ClServer_MessageStruct functionref( ClServer_MessageStruct ) > OnRecievedSayTextMessageCallbacks + array< ClServer_MessageStruct functionref( ClServer_MessageStruct ) > OnReceivedSayTextMessageCallbacks } NsCustomCallbacks void function CServerGameDLL_ProcessMessageStartThread() { - thread CServerGameDLL_OnRecievedSayTextMessageCallback() + thread CServerGameDLL_OnReceivedSayTextMessageCallback() } -void function CServerGameDLL_OnRecievedSayTextMessageCallback() +void function CServerGameDLL_OnReceivedSayTextMessageCallback() { ClServer_MessageStruct localMessage localMessage.message = NSChatGetCurrentMessage() @@ -26,7 +26,7 @@ void function CServerGameDLL_OnRecievedSayTextMessageCallback() localMessage.channelId = NSChatGetCurrentChannel() localMessage.shouldBlock = false - foreach ( callbackFunc in NsCustomCallbacks.OnRecievedSayTextMessageCallbacks ) + foreach ( callbackFunc in NsCustomCallbacks.OnReceivedSayTextMessageCallbacks ) { ClServer_MessageStruct returnStruct = callbackFunc(localMessage) localMessage.message = returnStruct.message @@ -38,7 +38,7 @@ void function CServerGameDLL_OnRecievedSayTextMessageCallback() NSSetMessage(localMessage.message, localMessage.player.GetPlayerIndex(), localMessage.channelId, localMessage.shouldBlock) } -void function AddCallback_OnRecievedSayTextMessage( ClServer_MessageStruct functionref (ClServer_MessageStruct) callbackFunc ) +void function AddCallback_OnReceivedSayTextMessage( ClServer_MessageStruct functionref (ClServer_MessageStruct) callbackFunc ) { - NsCustomCallbacks.OnRecievedSayTextMessageCallbacks.append(callbackFunc) + NsCustomCallbacks.OnReceivedSayTextMessageCallbacks.append(callbackFunc) } \ No newline at end of file -- cgit v1.2.3