From 678ac8f56887c04108867f2c1717790f14719640 Mon Sep 17 00:00:00 2001 From: Edo Date: Mon, 6 Feb 2023 21:36:12 +0000 Subject: [PATCH] [ServerList]: Rename Notice (#757) --- src/Components/Modules/ServerList.cpp | 2 +- src/Utils/IO.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/Modules/ServerList.cpp b/src/Components/Modules/ServerList.cpp index 25f792a8..8005f87b 100644 --- a/src/Components/Modules/ServerList.cpp +++ b/src/Components/Modules/ServerList.cpp @@ -723,7 +723,7 @@ namespace Components RefreshContainer.awatingList = false; Logger::Print("We haven't received a response from the master within {} seconds!\n", (Game::Sys_Milliseconds() - RefreshContainer.awaitTime) / 1000); - Toast::Show("cardicon_headshot", "^3Warning", "Failed to reach master server. Using node system instead.", 5000); + Toast::Show("net_disconnect", "^2Notice", "Master server could not be reached. Switching to decentralized network", 3000); UseMasterServer = false; Node::Synchronize(); diff --git a/src/Utils/IO.cpp b/src/Utils/IO.cpp index f24222dd..c8687e8b 100644 --- a/src/Utils/IO.cpp +++ b/src/Utils/IO.cpp @@ -46,12 +46,12 @@ namespace Utils::IO if (!stream.is_open()) return false; stream.seekg(0, std::ios::end); - std::streamsize size = stream.tellg(); + const std::streamsize size = stream.tellg(); stream.seekg(0, std::ios::beg); if (size > -1) { - data->resize(static_cast(size)); + data->resize(static_cast(size)); stream.read(data->data(), size); stream.close(); return true;