mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Some style fixes
This commit is contained in:
parent
45cf274fa9
commit
c739aef60e
|
@ -2099,7 +2099,7 @@ void CClient::FinishMapDownload()
|
|||
const char *pError;
|
||||
m_pConsole->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "client/network", "download complete, loading map");
|
||||
|
||||
int prev = m_MapdownloadTotalsize;
|
||||
int Prev = m_MapdownloadTotalsize;
|
||||
m_MapdownloadTotalsize = -1;
|
||||
|
||||
// load map
|
||||
|
@ -2113,7 +2113,7 @@ void CClient::FinishMapDownload()
|
|||
else if(m_pMapdownloadTask) // fallback
|
||||
{
|
||||
ResetMapDownload();
|
||||
m_MapdownloadTotalsize = prev;
|
||||
m_MapdownloadTotalsize = Prev;
|
||||
SendMapRequest();
|
||||
}
|
||||
else
|
||||
|
|
|
@ -693,14 +693,14 @@ static void StrVariableCommand(IConsole::IResult *pResult, void *pUserData)
|
|||
const char *pString = pResult->GetString(0);
|
||||
if(!str_utf8_check(pString))
|
||||
{
|
||||
char Temp[4];
|
||||
char aTemp[4];
|
||||
int Length = 0;
|
||||
while(*pString)
|
||||
{
|
||||
int Size = str_utf8_encode(Temp, static_cast<const unsigned char>(*pString++));
|
||||
int Size = str_utf8_encode(aTemp, static_cast<unsigned char>(*pString++));
|
||||
if(Length+Size < pData->m_MaxSize)
|
||||
{
|
||||
mem_copy(pData->m_pStr+Length, &Temp, Size);
|
||||
mem_copy(pData->m_pStr+Length, aTemp, Size);
|
||||
Length += Size;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -48,12 +48,12 @@ void CPlayer::Reset()
|
|||
m_LastInvited = 0;
|
||||
m_WeakHookSpawn = false;
|
||||
|
||||
int* idMap = Server()->GetIdMap(m_ClientID);
|
||||
int *pIdMap = Server()->GetIdMap(m_ClientID);
|
||||
for (int i = 1;i < VANILLA_MAX_CLIENTS;i++)
|
||||
{
|
||||
idMap[i] = -1;
|
||||
pIdMap[i] = -1;
|
||||
}
|
||||
idMap[0] = m_ClientID;
|
||||
pIdMap[0] = m_ClientID;
|
||||
|
||||
// DDRace
|
||||
|
||||
|
|
|
@ -134,8 +134,6 @@ private:
|
|||
int64 m_ForcePauseTime;
|
||||
int64 m_LastPause;
|
||||
|
||||
// DDRace
|
||||
|
||||
public:
|
||||
enum
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue