From 88ff6f74fa5b5103e6391d320b938838752fc6c4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Apr 2012 05:21:25 +0300 Subject: Show version in game window caption. --- src/client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client.cpp b/src/client.cpp index c05c744bc..dd8838244 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -372,8 +372,9 @@ void Client::gameInit() SDL_EnableUNICODE(1); SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); - SDL_WM_SetCaption(branding.getValue("appName", - "ManaPlus").c_str(), nullptr); + SDL_WM_SetCaption(strprintf("%s %s", + branding.getStringValue("appName").c_str(), + SMALL_VERSION).c_str(), nullptr); ResourceManager *resman = ResourceManager::getInstance(); -- cgit v1.2.3-60-g2f50