Minor changes

This commit is contained in:
GreYFoX 2011-12-31 01:32:31 +02:00
parent 7d462b565d
commit 7820e48ec6
4 changed files with 4 additions and 3 deletions

View file

@ -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())

View file

@ -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(

View file

@ -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);

View file

@ -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