Added "recruit" event.

My policy has always been to never commit C++ code myself, but since this one
is straightforward and Sirp said bad words like "looks fine", I'm going ahead.
But please be aware that Wesnoth is doomed. =)
This commit is contained in:
Cédric Duval 2004-08-07 13:06:02 +00:00
parent 92ea6826d8
commit e02605b090

View file

@ -130,6 +130,9 @@ std::string recruit_unit(const gamemap& map, int side,
units.insert(std::pair<gamemap::location,unit>(
recruit_location,new_unit));
std::cerr << "firing recruit event\n";
game_events::fire("recruit",recruit_location);
if(show) {
for(double alpha = 0.0; alpha <= 1.0; alpha += 0.1) {