diff options
author | Kahrl <kahrl@gmx.net> | 2013-09-25 04:29:07 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-09-28 21:30:17 +0200 |
commit | 8bc7ea61b901516d3e1cbde77df1830d14129259 (patch) | |
tree | e7acea045324fc70dcce0547e34ebc6d958bf1c1 /src/script/lua_api | |
parent | 372d638ec1ea97bf88e9d62ffeb03e73bc94ee1e (diff) | |
download | minetest-8bc7ea61b901516d3e1cbde77df1830d14129259.tar.gz minetest-8bc7ea61b901516d3e1cbde77df1830d14129259.tar.bz2 minetest-8bc7ea61b901516d3e1cbde77df1830d14129259.zip |
Show git hash in version string at top left corner of window
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_mainmenu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/lua_api/l_mainmenu.cpp b/src/script/lua_api/l_mainmenu.cpp index 55376690e..ff0d52774 100644 --- a/src/script/lua_api/l_mainmenu.cpp +++ b/src/script/lua_api/l_mainmenu.cpp @@ -25,6 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "guiKeyChangeMenu.h" #include "guiFileSelectMenu.h" #include "subgame.h" +#include "version.h" #include "porting.h" #include "filesys.h" #include "convert_json.h" @@ -923,7 +924,7 @@ int ModApiMainMenu::l_show_file_open_dialog(lua_State *L) /******************************************************************************/ int ModApiMainMenu::l_get_version(lua_State *L) { - lua_pushstring(L,VERSION_STRING); + lua_pushstring(L, minetest_version_simple); return 1; } |