mail[Wesnoth-commits] r20051 - /trunk/src/team.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by alinktomine on September 02, 2007 - 07:21:
Author: alink
Date: Sun Sep  2 07:20:40 2007
New Revision: 20051

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20051&view=rev
Log:
small optimization: no need to fully refresh an inactive fog/shroud map
(seems to happened after every move).
I will also prevent this useless fog work on unfogged map at higher level

Modified:
    trunk/src/team.cpp

Modified: trunk/src/team.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/team.cpp?rev=20051&r1=20050&r2=20051&view=diff
==============================================================================
--- trunk/src/team.cpp (original)
+++ trunk/src/team.cpp Sun Sep  2 07:20:40 2007
@@ -675,6 +675,9 @@
 
 void team::shroud_map::reset()
 {
+       if(enabled_ == false)
+               return;
+
        for(std::vector<std::vector<bool> >::iterator i = data_.begin(); i != 
data_.end(); ++i) {
                std::fill(i->begin(),i->end(),false);
        }




Related Messages


Powered by MHonArc, Updated Sun Sep 02 07:40:13 2007