Author: crab
Date: Tue Apr 7 23:59:32 2009
New Revision: 34626
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34626&view=rev
Log:
slightly reworked r34621, after consultation with boucman, to play recruitment
animation without the leader, if there is no good ptr to leader.
Modified:
trunk/src/actions.cpp
Modified: trunk/src/actions.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/actions.cpp?rev=34626&r1=34625&r2=34626&view=diff
==============================================================================
--- trunk/src/actions.cpp (original)
+++ trunk/src/actions.cpp Tue Apr 7 23:59:32 2009
@@ -191,7 +191,13 @@
}
const unit_map::iterator new_unit_itor = units.find(recruit_location);
if(new_unit_itor != units.end())
new_unit_itor->second.set_hidden(false);
- if(show &&
u.valid())unit_display::unit_recruited(recruit_location,u->first);
+ if (show) {
+ if (u.valid()) {
+ unit_display::unit_recruited(recruit_location,u->first);
+ } else {
+ unit_display::unit_recruited(recruit_location);
+ }
+ }
if (is_recall)
{
LOG_NG << "firing recall event\n";
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits