Fixes issues pointed out by heinrich5991

Byte lenghts of 128 Bytes is enouth and DDNet is using this lenghts too.
This commit is contained in:
Zwelf 2015-06-03 20:02:14 +02:00 committed by oy
parent 1df383ad90
commit b65b02c345
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ public:
virtual void EnterGame() = 0;
//
virtual const char *MapDownloadName() = 0;
virtual const char *MapDownloadName() const = 0;
virtual int MapDownloadAmount() const = 0;
virtual int MapDownloadTotalsize() const = 0;

View file

@ -1679,6 +1679,7 @@ int CMenus::Render()
// make sure that other windows doesn't do anything funnay!
//UI()->SetHotItem(0);
//UI()->SetActiveItem(0);
char aBuf[128];
const char *pTitle = "";
const char *pExtraText = "";
const char *pButtonText = "";
@ -1697,7 +1698,6 @@ int CMenus::Render()
pButtonText = Localize("Abort");
if(Client()->MapDownloadTotalsize() > 0)
{
char aBuf[512];
str_format(aBuf, sizeof(aBuf), "%s: %s", Localize("Downloading map"), Client()->MapDownloadName());
pTitle = aBuf;
pExtraText = "";