diff options
author | Emma Miler <27428383+emma-miler@users.noreply.github.com> | 2022-02-08 02:42:52 +0100 |
---|---|---|
committer | Barichello <artur@barichello.me> | 2022-02-12 15:45:17 -0300 |
commit | 7d1fc5862e5ae948e5baa00507a4576764577292 (patch) | |
tree | eda089d872b6825c6514ea850a3c261a2fee26e3 /Northstar.CustomServers/mod/scripts/vscripts | |
parent | 94f7f68bf9153d39fcdb38d614f1774cdb2fc33f (diff) | |
download | NorthstarMods-7d1fc5862e5ae948e5baa00507a4576764577292.tar.gz NorthstarMods-7d1fc5862e5ae948e5baa00507a4576764577292.zip |
Fixed typo
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/_custom_codecallbacks.gnut | 12 |
1 files changed, 6 insertions, 6 deletions
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 |