1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 09:14:58 +01:00

Rename snake_case functions in OpenRCT2/network folder (#19203)

This commit is contained in:
Hielke Morsink
2023-01-18 07:05:53 +01:00
committed by GitHub
parent bf41249e64
commit 2c224cfd53
46 changed files with 611 additions and 609 deletions

View File

@@ -48,8 +48,8 @@ static int32_t ChatHistoryDrawString(
bool ChatAvailable()
{
return network_get_mode() != NETWORK_MODE_NONE && network_get_status() == NETWORK_STATUS_CONNECTED
&& network_get_authstatus() == NetworkAuth::Ok;
return NetworkGetMode() != NETWORK_MODE_NONE && NetworkGetStatus() == NETWORK_STATUS_CONNECTED
&& NetworkGetAuthstatus() == NetworkAuth::Ok;
}
void ChatOpen()
@@ -229,7 +229,7 @@ void ChatAddHistory(std::string_view s)
_chatHistoryIndex++;
// Log to file (src only as logging does its own timestamp)
network_append_chat_log(s);
NetworkAppendChatLog(s);
CreateAudioChannel(SoundId::NewsItem, 0, MIXER_VOLUME_MAX, 0.5f, 1.5f, true);
}
@@ -241,7 +241,7 @@ void ChatInput(enum ChatInput input)
case ChatInput::Send:
if (_chatCurrentLine[0] != '\0')
{
network_send_chat(_chatCurrentLine);
NetworkSendChat(_chatCurrentLine);
}
ChatClearInput();
ChatClose();