mail[Wesnoth-commits] r52634 - /trunk/src/scripting/lua.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by strgaltent on January 17, 2012 - 15:57:
Author: anonymissimus
Date: Tue Jan 17 15:57:24 2012
New Revision: 52634

URL: http://svn.gna.org/viewcvs/wesnoth?rev=52634&view=rev
Log:
deprecate useless confusing wesnoth.highlight_hex

Its functionality is basically covered by select_hex.

Modified:
    trunk/src/scripting/lua.cpp

Modified: trunk/src/scripting/lua.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/scripting/lua.cpp?rev=52634&r1=52633&r2=52634&view=diff
==============================================================================
--- trunk/src/scripting/lua.cpp (original)
+++ trunk/src/scripting/lua.cpp Tue Jan 17 15:57:24 2012
@@ -1493,6 +1493,8 @@
  */
 static int intf_highlight_hex(lua_State *L)
 {
+       ERR_LUA << "wesnoth.highlight_hex is deprecated, use 
wesnoth.select_hex\n";
+
        int x = luaL_checkinteger(L, 1) - 1;
        int y = luaL_checkinteger(L, 2) - 1;
        const map_location loc(x, y);




Related Messages


Powered by MHonArc, Updated Tue Jan 17 16:00:08 2012