Author: alink
Date: Mon Nov  5 22:10:59 2007
New Revision: 21521

URL: http://svn.gna.org/viewcvs/wesnoth?rev=21521&view=rev
Log:
Fix the low perfomance in titlescreen (and maybe elsewhere whitout active map)
It was a bad initialisation of map size.
Maybe use size_t ? or check if <= 0 ? or use 0 as default instead of -1
But beter discuss it after the release (and avoid multiple changes in map.hpp)

Modified:
    trunk/src/map.cpp

Modified: trunk/src/map.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/map.cpp?rev=21521&r1=21520&r2=21521&view=diff
==============================================================================
--- trunk/src/map.cpp (original)
+++ trunk/src/map.cpp Mon Nov  5 22:10:59 2007
@@ -325,6 +325,8 @@
        std::map<int, t_translation::coordinate> starting_positions;
 
        if(data.empty()) {
+               w_ = 0;
+               h_ = 0;
                return;
        }
 


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

Reply via email to