Author: cazfi Date: Thu Mar 3 07:18:39 2016 New Revision: 32160 URL: http://svn.gna.org/viewcvs/freeciv?rev=32160&view=rev Log: Added deprecation warning against use of lua game:turn
See patch #7025 Modified: trunk/common/scriptcore/api_game_methods.c Modified: trunk/common/scriptcore/api_game_methods.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/scriptcore/api_game_methods.c?rev=32160&r1=32159&r2=32160&view=diff ============================================================================== --- trunk/common/scriptcore/api_game_methods.c (original) +++ trunk/common/scriptcore/api_game_methods.c Thu Mar 3 07:18:39 2016 @@ -14,6 +14,9 @@ #ifdef HAVE_CONFIG_H #include <fc_config.h> #endif + +/* utility */ +#include "deprecations.h" /* common */ #include "achievements.h" @@ -56,6 +59,9 @@ { LUASCRIPT_CHECK_STATE(L, FALSE); + log_deprecation("Deprecated: lua construct \"game:turn\", deprecated since \"3.0\", used. " + "Use \"game:current_turn\" instead."); + if (game.info.turn > 0) { return game.info.turn - 1; } _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits