Cleaning formula AI merge 2008-03-03T05:40:29Z!davewx7@gmail.com

Redo final part of 2008-01-31T15:03:23Z!paniemin@cc.hut.fi
This commit is contained in:
Ali El Gariani 2008-04-25 22:26:26 +00:00
parent 9a3890d468
commit e935c2d351

View file

@ -755,7 +755,7 @@ void attack::fire_event(const std::string& n)
dat.add_child("first");
dat.add_child("second");
if(a_ != units_.end()) {
(*(dat.child("first")))["weapon"]=a_stats_->weapon->id();
(*(dat.child("first")))["weapon"]= a_stats_->weapon ? a_stats_->weapon->id() : "none";
}
if(d_ != units_.end()) {