Author: jtn
Date: Tue Nov 10 23:55:48 2015
New Revision: 30525

URL: http://svn.gna.org/viewcvs/freeciv?rev=30525&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:
    trunk/server/scripting/tolua_server.pkg

Modified: trunk/server/scripting/tolua_server.pkg
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/scripting/tolua_server.pkg?rev=30525&r1=30524&r2=30525&view=diff
==============================================================================
--- trunk/server/scripting/tolua_server.pkg     (original)
+++ trunk/server/scripting/tolua_server.pkg     Tue Nov 10 23:55:48 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