mail[Wesnoth-commits] r20053 - /trunk/src/actions.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:50:
Author: alink
Date: Sun Sep  2 07:50:04 2007
New Revision: 20053

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20053&view=rev
Log:
Other fog optimization: on a map with shroud but without fog,
remove a redundant evaluation of units sight for refreshing an inexistent fog
(This change doesn't affect shroud and sighted event)

Modified:
    trunk/src/actions.cpp

Modified: trunk/src/actions.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/actions.cpp?rev=20053&r1=20052&r2=20053&view=diff
==============================================================================
--- trunk/src/actions.cpp (original)
+++ trunk/src/actions.cpp Sun Sep  2 07:50:04 2007
@@ -1832,7 +1832,9 @@
        }
        game_events::pump();
 
-       recalculate_fog(map,status,gamedata,units,teams,team);
+       if (teams[team].uses_fog()) {
+               recalculate_fog(map,status,gamedata,units,teams,team);
+       }
 
        disp.labels().recalculate_shroud();
 




Related Messages


Powered by MHonArc, Updated Sun Sep 02 08:00:24 2007