Author: alink
Date: Thu May  1 17:02:08 2008
New Revision: 26282

URL: http://svn.gna.org/viewcvs/wesnoth?rev=26282&view=rev
Log:
Fix a bug reported in forum about unstoned units not directly having their
attacks back. Attacks_left() already returned 0 for stoned unit, no need
to set it to 0 each turn. 

Modified:
    trunk/src/unit.cpp

Modified: trunk/src/unit.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=26282&r1=26281&r2=26282&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Thu May  1 17:02:08 2008
@@ -678,9 +678,6 @@
        attacks_left_ = max_attacks_;
        set_state("hides","yes");
 
-       if(incapacitated()) {
-               set_attacks(0);
-       }
        if (hold_position_) {
                end_turn_ = true;
        }


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

Reply via email to