4101: Fix long maps not showing as finished (fixes #4092) r=edg-l a=def-

Only used client-side so no protocol change

<!-- What is the motivation for the changes of this pull request -->

## Checklist

- [x] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: def <dennis@felsin9.de>
This commit is contained in:
bors[bot] 2021-08-21 07:31:24 +00:00 committed by GitHub
commit 1aeb09f4f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
#define ENGINE_SHARED_SERVERINFO_H #define ENGINE_SHARED_SERVERINFO_H
#include "protocol.h" #include "protocol.h"
#include <engine/map.h>
typedef struct _json_value json_value; typedef struct _json_value json_value;
class CServerInfo; class CServerInfo;
@ -27,7 +28,7 @@ public:
bool m_Passworded; bool m_Passworded;
char m_aGameType[16]; char m_aGameType[16];
char m_aName[64]; char m_aName[64];
char m_aMapName[32]; char m_aMapName[MAX_MAP_LENGTH];
char m_aVersion[32]; char m_aVersion[32];
bool operator==(const CServerInfo2 &Other) const; bool operator==(const CServerInfo2 &Other) const;