mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 22:18:19 +00:00
Fix demos recorded without mapdata not being loadable
As the demo player skips the map data when loading the demo, the size of the map specified in the demo must be zero when no map data is embedded.
This commit is contained in:
parent
5c2f162da2
commit
3f1b702b90
|
@ -124,7 +124,9 @@ int CDemoRecorder::Start(class IStorage *pStorage, class IConsole *pConsole, con
|
|||
CloseMapFile = true;
|
||||
}
|
||||
|
||||
if(MapFile)
|
||||
if(m_NoMapData)
|
||||
MapSize = 0;
|
||||
else if(MapFile)
|
||||
MapSize = io_length(MapFile);
|
||||
|
||||
// write header
|
||||
|
|
Loading…
Reference in a new issue