Remove format because gcc 11 🙂
This commit is contained in:
parent
2ee6d61231
commit
5a4574532e
@ -1,7 +1,5 @@
|
|||||||
#include "game.hpp"
|
#include "game.hpp"
|
||||||
|
|
||||||
#include <format>
|
|
||||||
|
|
||||||
#include "player.hpp"
|
#include "player.hpp"
|
||||||
#include "openworld.hpp"
|
#include "openworld.hpp"
|
||||||
|
|
||||||
@ -26,13 +24,13 @@ void game::Game::PlayerJoined(Player& player)
|
|||||||
player.SetWorld(default_world_);
|
player.SetWorld(default_world_);
|
||||||
|
|
||||||
players_.insert(&player);
|
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)
|
void game::Game::PlayerLeft(Player& player)
|
||||||
{
|
{
|
||||||
players_.erase(&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)
|
bool game::Game::PlayerInput(Player& player, PlayerInputType type, bool enabled)
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#include "client.hpp"
|
#include "client.hpp"
|
||||||
|
|
||||||
#include <format>
|
|
||||||
|
|
||||||
#include "server.hpp"
|
#include "server.hpp"
|
||||||
#include "utils/validate.hpp"
|
#include "utils/validate.hpp"
|
||||||
#include "utils/version.hpp"
|
#include "utils/version.hpp"
|
||||||
@ -85,7 +83,7 @@ bool sv::Client::ProcessLoginMsg(net::InMessage& msg)
|
|||||||
// check ver
|
// check ver
|
||||||
if (ver != FEKAL_VERSION)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user