mail[Wesnoth-commits] r44615 - /trunk/src/actions.cpp


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

Header


Content

Posted by guillaume . melquiond on July 24, 2010 - 09:19:
Author: silene
Date: Sat Jul 24 09:19:50 2010
New Revision: 44615

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44615&view=rev
Log:
Fixed petrifying in multiround combats.

Modified:
    trunk/src/actions.cpp

Modified: trunk/src/actions.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/actions.cpp?rev=44615&r1=44614&r2=44615&view=diff
==============================================================================
--- trunk/src/actions.cpp (original)
+++ trunk/src/actions.cpp Sat Jul 24 09:19:50 2010
@@ -1485,7 +1485,7 @@
                        defender_unit.set_state(unit::STATE_PETRIFIED, true);
                        update_fog = true;
                        attacker.n_attacks_ = 0;
-                       defender.n_attacks_ = 0;
+                       defender.n_attacks_ = -1; // Petrified.
                        game_events::fire("petrified", defender.loc_, 
attacker.loc_);
                        refresh_bc();
                }
@@ -1598,7 +1598,8 @@
                        --rounds;
                        defender_strikes_first = (d_stats_->firststrike && ! 
a_stats_->firststrike);
                }
-               if(a_.n_attacks_ <= 0 && d_.n_attacks_ <= 0) {
+
+               if (a_.n_attacks_ <= 0 && d_.n_attacks_ <= 0) {
                        fire_event("attack_end");
                        refresh_bc();
                        break;




Related Messages


Powered by MHonArc, Updated Sat Jul 24 09:40:16 2010