From e02605b090c95e823537206aff367f06cc196c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Duval?= Date: Sat, 7 Aug 2004 13:06:02 +0000 Subject: [PATCH] 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. =) --- src/actions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/actions.cpp b/src/actions.cpp index 76096684fe0..980ee57f723 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -130,6 +130,9 @@ std::string recruit_unit(const gamemap& map, int side, units.insert(std::pair( 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) {