Author: cazfi
Date: Fri Dec 11 07:26:10 2015
New Revision: 30943

URL: http://svn.gna.org/viewcvs/freeciv?rev=30943&view=rev
Log:
Added deprecation comments about lua functions create_base() and create_road()

See patch #6658

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=30943&r1=30942&r2=30943&view=diff
==============================================================================
--- trunk/server/scripting/tolua_server.pkg     (original)
+++ trunk/server/scripting/tolua_server.pkg     Fri Dec 11 07:26:10 2015
@@ -123,9 +123,11 @@
                    const char *name);
   void api_edit_create_extra
     @ create_extra (lua_State *L, Tile *ptile, const char *name);
+  /* Deprecated; use edit.create_extra() */
   void api_edit_create_base
     @ create_base (lua_State *L, Tile *ptile, const char *name,
                    Player *pplayer);
+  /* Deprecated; use edit.create_extra() */
   void api_edit_create_road
     @ create_road (lua_State *L, Tile *ptile, const char *name);
   void api_edit_tile_set_label
@@ -192,6 +194,7 @@
   edit.create_city (player, tile, name)
 end
 
+-- Deprecated; use edit.create_extra()
 function create_base(tile, name, player)
   edit.create_base(tile, name, player)
 end
@@ -302,10 +305,12 @@
   edit.create_extra(self, name)
 end
 
+-- Deprecated; use edit.create_extra()
 function Tile:create_base(name, player)
   edit.create_base(self, name, player)
 end
 
+-- Deprecated; use edit.create_extra()
 function Tile:create_road(name)
   edit.create_road(self, name)
 end


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

Reply via email to