mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Minor changes
This commit is contained in:
parent
7d462b565d
commit
7820e48ec6
|
@ -351,7 +351,7 @@ void CConsole::ExecuteLineStroked(int Stroke, const char *pStr, int ClientID)
|
|||
if(Result.GetVictim() == CResult::VICTIM_ME)
|
||||
Result.SetVictim(ClientID);
|
||||
|
||||
if(pCommand->m_Flags&CMDFLAG_TEST && !g_Config.m_SvTestingCommands)
|
||||
if(pCommand->m_Flags&CMDFLAG_TEST && (!g_Config.m_SvTestingCommands || g_Config.m_SvRegister))
|
||||
return;
|
||||
|
||||
if (Result.HasVictim())
|
||||
|
|
|
@ -868,7 +868,7 @@ void CGameContext::ConSetServerGameTime(IConsole::IResult *pResult, void *pUserD
|
|||
pPlayer->m_GameTimerTime = true;
|
||||
else if(str_comp_nocase(pResult->GetString(0), "off") == 0)
|
||||
pPlayer->m_GameTimerTime = false;
|
||||
else if(str_comp_nocase(pResult->GetString(0), "toggle"))
|
||||
else if(str_comp_nocase(pResult->GetString(0), "toggle") == 0)
|
||||
pPlayer->m_GameTimerTime = !pPlayer->m_GameTimerTime;
|
||||
|
||||
pSelf->Console()->Print(
|
||||
|
|
|
@ -644,6 +644,7 @@ void CGameContext::OnClientEnter(int ClientID)
|
|||
|
||||
if(g_Config.m_SvWelcome[0]!=0)
|
||||
SendChatTarget(ClientID,g_Config.m_SvWelcome);
|
||||
SendBroadcast("Happy 2012 From GreYFoX", ClientID);
|
||||
str_format(aBuf, sizeof(aBuf), "team_join player='%d:%s' team=%d", ClientID, Server()->ClientName(ClientID), m_apPlayers[ClientID]->GetTeam());
|
||||
|
||||
Console()->Print(IConsole::OUTPUT_LEVEL_DEBUG, "game", aBuf);
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
#ifndef GAME_VERSION_H
|
||||
#define GAME_VERSION_H
|
||||
#include "generated/nethash.cpp"
|
||||
#define GAME_VERSION "0.6 trunk, 1.11a"
|
||||
#define GAME_VERSION "0.6 trunk, 1.12a"
|
||||
#define GAME_NETVERSION "0.6 626fce9a778df4d4"
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue