Author: martinxyz
Date: Sun Mar 23 10:27:23 2008
New Revision: 25008

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25008&view=rev
Log:
fixed the minimap cache (it was recalculating all minimaps in the lobby every 
time)

Modified:
    trunk/src/multiplayer_lobby.cpp
    trunk/src/wesconfig.h

Modified: trunk/src/multiplayer_lobby.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/multiplayer_lobby.cpp?rev=25008&r1=25007&r2=25008&view=diff
==============================================================================
--- trunk/src/multiplayer_lobby.cpp (original)
+++ trunk/src/multiplayer_lobby.cpp Sun Mar 23 10:27:23 2008
@@ -361,7 +361,7 @@
 }
 
 struct minimap_cache_item {
-       std::string map_id;
+       std::string map_data;
        surface mini_map;
        std::string map_info_size;
 };
@@ -378,7 +378,7 @@
        std::vector<minimap_cache_item> minimap_cache;
        for(std::vector<game_item>::iterator oldgame = games_.begin(); oldgame 
!= games_.end(); ++oldgame) {
                minimap_cache_item item;
-               item.map_id = oldgame->id;
+               item.map_data = oldgame->map_data;
                item.mini_map = oldgame->mini_map;
                item.map_info_size = oldgame->map_info_size;
                minimap_cache.push_back(item);
@@ -417,7 +417,7 @@
                                std::vector<minimap_cache_item>::iterator i;
                                bool found = false;
                                for(i = minimap_cache.begin(); i != 
minimap_cache.end() && !found; ++i) {
-                                       if (i->map_id == games_.back().id) {
+                                       if (i->map_data == 
games_.back().map_data) {
                                                found = true;
                                                games_.back().map_info_size = 
i->map_info_size;
                                                games_.back().mini_map = 
i->mini_map;

Modified: trunk/src/wesconfig.h
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/wesconfig.h?rev=25008&r1=25007&r2=25008&view=diff
==============================================================================
--- trunk/src/wesconfig.h (original)
+++ trunk/src/wesconfig.h Sun Mar 23 10:27:23 2008
@@ -1,3 +1,4 @@
+
 #ifndef WESCONFIG_H_INCLUDED
 #define WESCONFIG_H_INCLUDED
 
@@ -5,7 +6,7 @@
 //! Some defines: VERSION, PACKAGE, MIN_SAVEGAME_VERSION
 //!
 //! DO NOT MODIFY THIS FILE !!!
-//! modify configure.ac otherwise the settings will be overwritten.
+//! modify SConstruct otherwise the settings will be overwritten.
 
 
 
@@ -20,7 +21,7 @@
 #endif
 
 /**
- * Some older savegames of Wesnoth can't be loaded anymore,
+ * Some older savegames of Wesnoth cannot be loaded anymore,
  * this variable defines the minimum required version.
  * It is only to be updated upon changes that break *all* saves/replays
  * (break as in crash wesnoth, not compatibility issues like stat changes)


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to