Remove format because gcc 11 🙂

This commit is contained in:
tovjemam 2026-03-14 23:07:56 +01:00
parent 2ee6d61231
commit 5a4574532e
2 changed files with 3 additions and 7 deletions

View File

@ -1,7 +1,5 @@
#include "game.hpp"
#include <format>
#include "player.hpp"
#include "openworld.hpp"
@ -26,13 +24,13 @@ void game::Game::PlayerJoined(Player& player)
player.SetWorld(default_world_);
players_.insert(&player);
BroadcastChat(std::format("{}^r se připoojil jupí jupí jupííí", player.GetName()));
BroadcastChat(player.GetName() + "^r se připoojil jupí jupí jupííí");
}
void game::Game::PlayerLeft(Player& player)
{
players_.erase(&player);
BroadcastChat(std::format("{}^r se vodpojil zmrd", player.GetName()));
BroadcastChat(player.GetName() + "^r se vodpojil zmrd");
}
bool game::Game::PlayerInput(Player& player, PlayerInputType type, bool enabled)

View File

@ -1,7 +1,5 @@
#include "client.hpp"
#include <format>
#include "server.hpp"
#include "utils/validate.hpp"
#include "utils/version.hpp"
@ -85,7 +83,7 @@ bool sv::Client::ProcessLoginMsg(net::InMessage& msg)
// check ver
if (ver != FEKAL_VERSION)
{
SendChat(std::format("^f55máš nahovno verzi {}, server je na {}", ver, FEKAL_VERSION));
SendChat("^f55máš nahovno verzi " + std::to_string(ver) + ", server je na " + std::to_string(FEKAL_VERSION));
return false;
}