mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Show git hash in version string at top left corner of window
This commit is contained in:
parent
372d638ec1
commit
8bc7ea61b9
16 changed files with 137 additions and 22 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue