diff options
Diffstat (limited to 'src/game/client')
| -rw-r--r-- | src/game/client/game_client.cpp | 4 | ||||
| -rw-r--r-- | src/game/client/menu.cpp | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp index e5969fcf..2e093308 100644 --- a/src/game/client/game_client.cpp +++ b/src/game/client/game_client.cpp @@ -9,6 +9,7 @@ extern "C" { }; #include "../game.h" +#include "../version.h" #include "mapres_image.h" #include "mapres_tilemap.h" #include "data.h" @@ -2204,3 +2205,6 @@ extern "C" void modc_message(int msg) client_datas[cid].emoticon_start = client_tick(); } } + + +extern "C" const char *modc_net_version() { return TEEWARS_NETVERSION; } diff --git a/src/game/client/menu.cpp b/src/game/client/menu.cpp index 1e7f1edc..a307d176 100644 --- a/src/game/client/menu.cpp +++ b/src/game/client/menu.cpp @@ -8,12 +8,12 @@ extern "C" { #include <engine/system.h> #include <engine/interface.h> - #include <engine/versions.h> #include <engine/config.h> #include <engine/client/ui.h> } #include "../mapres.h" +#include "../version.h" #include "mapres_image.h" #include "mapres_tilemap.h" @@ -1289,7 +1289,7 @@ int render_popup(const char *caption, const char *text, const char *button_text) ui_do_label(x+w/2-tw/2, y+20, caption, 48.0f); tw = gfx_pretty_text_width(32.0f, text, -1); - ui_do_label(x+w/2-tw/2, y+130, text, 32.0f); + gfx_pretty_text(x+w/2-tw/2, y+130, 32.0f, text, -1); if(button_text) { @@ -1366,6 +1366,8 @@ static int menu_render(bool ingame) { ui_do_image(data->images[IMAGE_BANNER].id, 200, 20, 512, 128); ui_do_label(20.0f, 600.0f-40.0f, "Version: " TEEWARS_VERSION, 36); + if(config.debug) + ui_do_label(20.0f, 600.0f-60.0f, "Nethash: " TEEWARS_NETVERSION_HASH, 24); } } else |