From 8ecf22ad3f468ca53d7d37e6374e571997b401fb Mon Sep 17 00:00:00 2001 From: vl Date: Tue, 6 Jul 2010 10:56:45 +0200 Subject: [PATCH 1/2] Fixed: Bad way to loop a number between 0 and 5 --- code/ryzom/client/src/interface_v3/action_handler_debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ryzom/client/src/interface_v3/action_handler_debug.cpp b/code/ryzom/client/src/interface_v3/action_handler_debug.cpp index b9f1bade0..aac90d171 100644 --- a/code/ryzom/client/src/interface_v3/action_handler_debug.cpp +++ b/code/ryzom/client/src/interface_v3/action_handler_debug.cpp @@ -79,7 +79,7 @@ class CAHDisplayInfos : public IActionHandler if( ClientCfg.Local || hasPrivilegeDEV() || hasPrivilegeSGM() || hasPrivilegeGM() || hasPrivilegeSG() || hasPrivilegeEM() || hasPrivilegeVG() ) #endif { - ShowInfos = (ShowInfos++)%6; + ShowInfos = (ShowInfos+1)%6; CGraph::Display = (ShowInfos != 0); } From f4a2b1345265751d5bd44be605e2530ad318546a Mon Sep 17 00:00:00 2001 From: vl Date: Tue, 6 Jul 2010 10:58:02 +0200 Subject: [PATCH 2/2] Removed: some flooding warning --- code/ryzom/client/src/sound_manager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/ryzom/client/src/sound_manager.cpp b/code/ryzom/client/src/sound_manager.cpp index 12f89c129..907acc1c5 100644 --- a/code/ryzom/client/src/sound_manager.cpp +++ b/code/ryzom/client/src/sound_manager.cpp @@ -1289,7 +1289,7 @@ void CSoundManager::update () _BackgroundFlags.Flags[DUSK] = true; break; case CLightCycleManager::StateUnknown: - nlwarning("Unknown light cycle state reached."); + //nlwarning("Unknown light cycle state reached."); break; } @@ -1322,7 +1322,8 @@ void CSoundManager::update () _BackgroundFlags.Flags[WINTER] = true; break; default: - nlwarning("Updating unknown season."); + //nlwarning("Updating unknown season."); + break; } // TODO : update the filter state for weather effet CWeatherState weatherState = WeatherManager.getCurrWeatherState();