Author: cazfi Date: Tue Sep 27 07:07:00 2016 New Revision: 33907 URL: http://svn.gna.org/viewcvs/freeciv?rev=33907&view=rev Log: Added "new_tech" lua scripting signal to client side.
Patch by Matthias Pfafferodt <syntron> See patch #2519 Modified: trunk/client/packhand.c Modified: trunk/client/packhand.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/packhand.c?rev=33907&r1=33906&r2=33907&view=diff ============================================================================== --- trunk/client/packhand.c (original) +++ trunk/client/packhand.c Tue Sep 27 07:07:00 2016 @@ -96,6 +96,9 @@ #include "update_queue.h" #include "voteinfo.h" +/* client/luascript */ +#include "script_client.h" + #include "packhand.h" /* Define this macro to get additional debug output about the transport @@ -2465,6 +2468,8 @@ if (0 < get_num_units_in_focus()) { menus_update(); } + script_client_signal_emit("new_tech", 0); + /* If we got a new tech the tech tree news an update. */ science_report_dialog_redraw(); } _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits