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:
parent
92ea6826d8
commit
e02605b090
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue