From 901427809fe6aeee7b3b820f5447f59955269ff9 Mon Sep 17 00:00:00 2001 From: Choupom Date: Sun, 12 Sep 2010 13:06:43 +0200 Subject: fixed so "reset tunning due to pure server" appears after "x changed to y" --- src/game/server/gamecontext.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/server/gamecontext.cpp') diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 61d04d4d..4300bc2e 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -815,15 +815,15 @@ void CGameContext::ConTuneParam(IConsole::IResult *pResult, void *pUserData) const char *pParamName = pResult->GetString(0); float NewValue = pResult->GetFloat(1); - char aBuf[256]; if(pSelf->Tuning()->Set(pParamName, NewValue)) { + char aBuf[256]; str_format(aBuf, sizeof(aBuf), "%s changed to %.2f", pParamName, NewValue); + pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "tuning", aBuf); pSelf->SendTuningParams(-1); } else - str_format(aBuf, sizeof(aBuf), "No such tuning parameter"); - pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "tuning", aBuf); + pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "tuning", "No such tuning parameter"); } void CGameContext::ConTuneReset(IConsole::IResult *pResult, void *pUserData) -- cgit 1.4.1