summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkaeza <kaeza@users.sf.net>2013-12-21 01:37:14 -0200
committerKahrl <kahrl@gmx.net>2013-12-31 06:13:54 +0100
commit767b2e7b175db54ec29bd270280b857586b1e836 (patch)
tree6e241fa63ff9e79a8d5ba2d3d419da334276e4c3 /src
parent2902a29c2d5cc54f1a5623613e91ddecc7fee2a2 (diff)
downloadminetest-767b2e7b175db54ec29bd270280b857586b1e836.tar.gz
minetest-767b2e7b175db54ec29bd270280b857586b1e836.tar.bz2
minetest-767b2e7b175db54ec29bd270280b857586b1e836.zip
Fix enum element name in Lua HUD code (position vs. pos)
Diffstat (limited to 'src')
-rw-r--r--src/script/lua_api/l_object.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp
index 3a990887b..457d8ea7b 100644
--- a/src/script/lua_api/l_object.cpp
+++ b/src/script/lua_api/l_object.cpp
@@ -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"},