diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-02 05:21:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-02 05:21:25 +0300 |
commit | 88ff6f74fa5b5103e6391d320b938838752fc6c4 (patch) | |
tree | d527a984dcdc4028e109963de93dbf2ba17682fb | |
parent | c845e800f0d4b17bc5ce65806fa5fadd9468c858 (diff) | |
download | plus-88ff6f74fa5b5103e6391d320b938838752fc6c4.tar.gz plus-88ff6f74fa5b5103e6391d320b938838752fc6c4.tar.bz2 plus-88ff6f74fa5b5103e6391d320b938838752fc6c4.tar.xz plus-88ff6f74fa5b5103e6391d320b938838752fc6c4.zip |
Show version in game window caption.
-rw-r--r-- | src/client.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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(); |