mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-09 08:21:10 +00:00
Remove duplication of the Hexify function.
Remove the useless extern keyword from function declarations in ps/Util.h. Patch by echotangoecho, refs #4095 This was SVN commit r18591.
This commit is contained in:
@@ -31,12 +31,11 @@
|
||||
#include "ps/Pyrogenesis.h"
|
||||
#include "ps/Replay.h"
|
||||
#include "ps/SavedGame.h"
|
||||
#include "ps/Util.h"
|
||||
#include "scriptinterface/ScriptInterface.h"
|
||||
#include "simulation2/Simulation2.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
#include <iomanip>
|
||||
|
||||
const u32 DEFAULT_TURN_LENGTH_MP = 500;
|
||||
const u32 DEFAULT_TURN_LENGTH_SP = 200;
|
||||
@@ -49,15 +48,6 @@ static const int COMMAND_DELAY = 2;
|
||||
#define NETTURN_LOG(args)
|
||||
#endif
|
||||
|
||||
static std::string Hexify(const std::string& s)
|
||||
{
|
||||
std::stringstream str;
|
||||
str << std::hex;
|
||||
for (size_t i = 0; i < s.size(); ++i)
|
||||
str << std::setfill('0') << std::setw(2) << (int)(unsigned char)s[i];
|
||||
return str.str();
|
||||
}
|
||||
|
||||
CNetTurnManager::CNetTurnManager(CSimulation2& simulation, u32 defaultTurnLength, int clientId, IReplayLogger& replay) :
|
||||
m_Simulation2(simulation), m_CurrentTurn(0), m_ReadyTurn(1), m_TurnLength(defaultTurnLength), m_DeltaSimTime(0),
|
||||
m_PlayerId(-1), m_ClientId(clientId), m_HasSyncError(false), m_Replay(replay),
|
||||
|
||||
Reference in New Issue
Block a user