projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2902a29
)
Fix enum element name in Lua HUD code (position vs. pos)
author
kaeza
<kaeza@users.sf.net>
Sat, 21 Dec 2013 03:37:14 +0000
(
01:37
-0200)
committer
Kahrl
<kahrl@gmx.net>
Tue, 31 Dec 2013 05:13:54 +0000
(06:13 +0100)
src/script/lua_api/l_object.cpp
patch
|
blob
|
history
diff --git
a/src/script/lua_api/l_object.cpp
b/src/script/lua_api/l_object.cpp
index 3a990887b2b9bd76e44c966c6b9df735aaf68c95..457d8ea7bd7a23dbe9504ff30ecf422e79622b5b 100644
(file)
--- 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"},