Author: esr
Date: Tue Apr  8 04:55:21 2008
New Revision: 25670

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25670&view=rev
Log:
Remove bad code.  This fixes bug #11451.

Modified:
    trunk/src/unit.cpp

Modified: trunk/src/unit.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=25670&r1=25669&r2=25670&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Tue Apr  8 04:55:21 2008
@@ -1264,15 +1264,6 @@
 
        type_ = "";
        advance_to(&uti->second.get_gender_unit_type(gender_), use_traits, 
state);
-               attacks_left_ = max_attacks_;
-               if(cfg["moves"]=="") {
-                       movement_ = max_movement_;
-               }
-               if(movement_ < 0) {
-                       attacks_left_ = 0;
-                       movement_ = 0;
-               }
-
        type_ = cfg_["type"];
        if(cfg["race"] != "") {
                const race_map::const_iterator race_it = 
unit_type_data::types().races().find(cfg["race"]);


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

Reply via email to