CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Cedric Duval <[EMAIL PROTECTED]> 04/10/31 13:18:57
Modified files:
src : game.cpp
Log message:
Forcing a config reload upon language change.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/game.cpp.diff?tr1=1.152&tr2=1.153&r1=text&r2=text
Patches:
Index: wesnoth/src/game.cpp
diff -u wesnoth/src/game.cpp:1.152 wesnoth/src/game.cpp:1.153
--- wesnoth/src/game.cpp:1.152 Sun Oct 31 03:20:14 2004
+++ wesnoth/src/game.cpp Sun Oct 31 13:18:56 2004
@@ -1,4 +1,4 @@
-/* $Id: game.cpp,v 1.152 2004/10/31 03:20:14 cedricd Exp $ */
+/* $Id: game.cpp,v 1.153 2004/10/31 13:18:56 cedricd Exp $ */
/*
Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1301,6 +1301,12 @@
if(size_t(res) < langs.size()) {
set_language(known_languages[res]);
preferences::set_locale(known_languages[res].localename);
+
+ //force a reload of configuration information
+ const bool old_cache = use_caching_;
+ use_caching_ = false;
+ init_config();
+ use_caching_ = old_cache;
}
return false;