Commit fec907cb by Anselme

fixed crash on server due to special characters

parent e063f2eb
......@@ -119,7 +119,7 @@ void MapInstance::pushPlayerAction(PlayerDiff p_diff)
diff->players.push_back(p_diff);
}
void MapInstance::clearAllPlayerAction(std::string id){
void MapInstance::clearAllPlayerAction(sf::String id){
int start = getCurrentTurn();
int end = m_characters[id]->action_turn;
if(start > end)
......@@ -139,7 +139,7 @@ void MapInstance::filterMapDiff()
{
MapDiff* raw_diff = m_mapdiffs[m_current_turn_id];
MapDiff* filteredDiff = new MapDiff();
// int i = 0;
// int i = 0;
for(PlayerDiff p_diff : raw_diff->players)
{
// action hasn't been computed yet, so IDLE means no input or taunt, and MOVING means MOVE input
......
......@@ -57,7 +57,7 @@ public:
sf::Packet& packCharacterData(sf::Packet &packet);
void pushPlayerAction(PlayerDiff p_diff);
void clearAllPlayerAction(std::string id);
void clearAllPlayerAction(sf::String id);
void clearMapDiffs(){m_mapdiffs.clear();}
unsigned int getCurrentTurn(){return m_current_turn_id;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment