Author: jtn
Date: Wed Nov 11 00:05:47 2015
New Revision: 30527

URL: http://svn.gna.org/viewcvs/freeciv?rev=30527&view=rev
Log:
Remove top-level function create_extra(), as since 2.4 we prefer use of
edit.* for such functions.

See gna bug #24049.

Modified:
    branches/S2_6/server/scripting/tolua_server.pkg

Modified: branches/S2_6/server/scripting/tolua_server.pkg
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/scripting/tolua_server.pkg?rev=30527&r1=30526&r2=30527&view=diff
==============================================================================
--- branches/S2_6/server/scripting/tolua_server.pkg     (original)
+++ branches/S2_6/server/scripting/tolua_server.pkg     Wed Nov 11 00:05:47 2015
@@ -165,7 +165,9 @@
 }
 
 $[
--- Compatibility functions (function names prior to freeciv 2.4)
+-- Compatibility functions
+-- These top-level functions were exposed prior to Freeciv 2.4. Since then
+-- we prefer use of edit.*. Do not add new functions to this section.
 function create_unit(player, tile, utype, veteran_level, homecity, moves_left)
   return edit.create_unit(player, tile, utype, veteran_level, homecity,
                           moves_left)
@@ -181,10 +183,6 @@
   edit.create_city (player, tile, name)
 end
 
-function create_extra(tile, name)
-  edit.create_extra(tile, name)
-end
-
 function create_base(tile, name, player)
   edit.create_base(tile, name, player)
 end


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

Reply via email to