1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Merge remote-tracking branch 'upstream/develop' into new-save-format

This commit is contained in:
ζeh Matt
2021-09-18 01:58:21 +03:00
6 changed files with 5 additions and 3 deletions

View File

@@ -4171,7 +4171,7 @@ int32_t network_get_current_player_group_index()
{
return 0;
}
void network_append_chat_log(std::string_view text)
void network_append_chat_log(std::string_view)
{
}
void network_append_server_log(const utf8* text)

View File

@@ -18,6 +18,7 @@
# include <deque>
# include <memory>
# include <string_view>
# include <vector>
class NetworkPlayer;

View File

@@ -15,6 +15,7 @@
#include <array>
#include <string>
#include <string_view>
enum class NetworkPermission : uint32_t;

View File

@@ -104,7 +104,7 @@ std::string_view NetworkPacket::ReadString()
// Skip null terminator.
BytesRead++;
return str;
return std::string_view(str, stringLen);
}
#endif

View File

@@ -15,6 +15,7 @@
#include "../world/Map.h"
#include <string>
#include <string_view>
#include <unordered_map>
struct NetworkPacket;

View File

@@ -99,7 +99,6 @@ void network_send_password(const std::string& password);
void network_set_password(const char* password);
void network_print_error();
void network_append_chat_log(std::string_view text);
void network_append_server_log(const utf8* text);
[[nodiscard]] const utf8* network_get_server_name();