diff options
author | Emma Miler <27428383+emma-miler@users.noreply.github.com> | 2022-02-08 02:42:52 +0100 |
---|---|---|
committer | Emma Miler <27428383+emma-miler@users.noreply.github.com> | 2022-02-08 02:42:52 +0100 |
commit | 92ac3621f357c3a6966180e2cd80d801da3503e5 (patch) | |
tree | 89d59c41fb1a581c5ce6b96f654ac86b226a1f27 | |
parent | b64f47803efa4815edc124835905726782d3c99f (diff) | |
download | NorthstarMods-92ac3621f357c3a6966180e2cd80d801da3503e5.tar.gz NorthstarMods-92ac3621f357c3a6966180e2cd80d801da3503e5.zip |
Fixed typov1.5.0-rc2
-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 |