Author: cazfi
Date: Sat Jan 16 23:26:37 2016
New Revision: 31469

URL: http://svn.gna.org/viewcvs/freeciv?rev=31469&view=rev
Log:
Do not emit "city_size_change" signal duplicate to what is already emitted by 
callers in
city_increase_size()

See bug #24307

Modified:
    trunk/server/cityturn.c

Modified: trunk/server/cityturn.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/cityturn.c?rev=31469&r1=31468&r2=31469&view=diff
==============================================================================
--- trunk/server/cityturn.c     (original)
+++ trunk/server/cityturn.c     Sat Jan 16 23:26:37 2016
@@ -934,10 +934,9 @@
   notify_player(powner, city_tile(pcity), E_CITY_GROWTH, ftc_server,
                 _("%s grows to size %d."),
                 city_link(pcity), city_size_get(pcity));
-  script_server_signal_emit("city_size_change", 3,
-                            API_TYPE_CITY, pcity,
-                            API_TYPE_INT, 1,
-                            API_TYPE_STRING, "growth");
+
+  /* Deprecated signal. Connect your lua functions to "city_size_change" that's
+   * emitted from calling functions which know the 'reason' of the increase. */
   script_server_signal_emit("city_growth", 2,
                             API_TYPE_CITY, pcity,
                             API_TYPE_INT, city_size_get(pcity));


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to