mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
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:
parent
1df383ad90
commit
b65b02c345
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 = "";
|
||||
|
|
Loading…
Reference in a new issue