mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Pad player demo filename with zeros instead of spaces
This commit is contained in:
parent
f73b1bc9cf
commit
c7ddb0ac47
|
@ -3267,7 +3267,7 @@ void CServer::SaveDemo(int ClientID, float Time)
|
|||
char aOldFilename[IO_MAX_PATH_LENGTH];
|
||||
char aNewFilename[IO_MAX_PATH_LENGTH];
|
||||
str_format(aOldFilename, sizeof(aOldFilename), "demos/%s_%d_%d_tmp.demo", m_aCurrentMap, m_NetServer.Address().port, ClientID);
|
||||
str_format(aNewFilename, sizeof(aNewFilename), "demos/%s_%s_%5.2f.demo", m_aCurrentMap, m_aClients[ClientID].m_aName, Time);
|
||||
str_format(aNewFilename, sizeof(aNewFilename), "demos/%s_%s_%05.2f.demo", m_aCurrentMap, m_aClients[ClientID].m_aName, Time);
|
||||
Storage()->RenameFile(aOldFilename, aNewFilename, IStorage::TYPE_SAVE);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue