Author: jhinrichs
Date: Thu Mar 27 23:00:38 2008
New Revision: 25213
URL: http://svn.gna.org/viewcvs/wesnoth?rev=25213&view=rev
Log:
Lazy loading for unit_types Step 1: Changelog (and a few debugging changes for
help.cpp i forgot to revert).
Modified:
trunk/changelog
trunk/src/help.cpp
Modified: trunk/changelog
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=25213&r1=25212&r2=25213&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Thu Mar 27 23:00:38 2008
@@ -18,6 +18,8 @@
* map editor:
* Fixed not working "Update transition" and make "Delay transition update"
directly trigger an update when toggled off.
+ * game engine
+ * Implemented lazy loading for unit_types
* multiplayer:
* Removed Wesbowl
* WML engine:
Modified: trunk/src/help.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/help.cpp?rev=25213&r1=25212&r2=25213&view=diff
==============================================================================
--- trunk/src/help.cpp (original)
+++ trunk/src/help.cpp Thu Mar 27 23:00:38 2008
@@ -135,7 +135,6 @@
explicit topic_text(topic_generator *g): generator_(g) {}
topic_text &operator=(topic_generator *g);
topic_text(topic_text const &t);
- //operator std::vector< std::string > const &() const;
const std::vector<std::string>& parsed_text() const;
};
@@ -858,9 +857,6 @@
void parse_config_internal(const config *help_cfg, const config *section_cfg,
section &sec, int level)
{
- if (section_cfg != NULL)
- DBG_HELP << "parse_config_internal, section_cfg:\n" << *section_cfg;
-
if (level > max_section_level) {
std::cerr << "Maximum section depth has been reached. Maybe
circular dependency?"
<< std::endl;
@@ -2714,8 +2710,8 @@
void help_browser::show_topic(const topic &t, bool save_in_history)
{
- //log_scope("show_topic");
- lg::scope_logger scope_topic(lg::general, "shop_topic");
+ log_scope("show_topic");
+
if (save_in_history) {
forward_topics_.clear();
if (shown_topic_ != NULL) {
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits