]> git.lizzy.rs Git - minetest.git/commitdiff
Fix enum element name in Lua HUD code (position vs. pos)
authorkaeza <kaeza@users.sf.net>
Sat, 21 Dec 2013 03:37:14 +0000 (01:37 -0200)
committerKahrl <kahrl@gmx.net>
Tue, 31 Dec 2013 05:13:54 +0000 (06:13 +0100)
src/script/lua_api/l_object.cpp

index 3a990887b2b9bd76e44c966c6b9df735aaf68c95..457d8ea7bd7a23dbe9504ff30ecf422e79622b5b 100644 (file)
@@ -43,7 +43,8 @@ struct EnumString es_HudElementType[] =
 
 struct EnumString es_HudElementStat[] =
 {
-       {HUD_STAT_POS,    "pos"},
+       {HUD_STAT_POS,    "position"},
+       {HUD_STAT_POS,    "pos"}, /* Deprecated, only for compatibility's sake */
        {HUD_STAT_NAME,   "name"},
        {HUD_STAT_SCALE,  "scale"},
        {HUD_STAT_TEXT,   "text"},