summaryrefslogtreecommitdiff
path: root/src/serverlist.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-09-25 04:29:07 +0200
committerKahrl <kahrl@gmx.net>2013-09-28 21:30:17 +0200
commit8bc7ea61b901516d3e1cbde77df1830d14129259 (patch)
treee7acea045324fc70dcce0547e34ebc6d958bf1c1 /src/serverlist.cpp
parent372d638ec1ea97bf88e9d62ffeb03e73bc94ee1e (diff)
downloadminetest-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/serverlist.cpp')
-rw-r--r--src/serverlist.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/serverlist.cpp b/src/serverlist.cpp
index 4db5f3ecd..908f048cb 100644
--- a/src/serverlist.cpp
+++ b/src/serverlist.cpp
@@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <sstream>
#include <algorithm>
+#include "version.h"
#include "main.h" // for g_settings
#include "settings.h"
#include "serverlist.h"
@@ -202,7 +203,7 @@ void sendAnnounce(std::string action, u16 clients, double uptime, std::string ga
if (action != "delete") {
server["name"] = g_settings->get("server_name");
server["description"] = g_settings->get("server_description");
- server["version"] = VERSION_STRING;
+ server["version"] = minetest_version_simple;
server["url"] = g_settings->get("server_url");
server["creative"] = g_settings->get("creative_mode");
server["damage"] = g_settings->get("enable_damage");