mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Replays: use git commit in DEVELOP, version string in release
This commit is contained in:
parent
912f9eaa15
commit
43bd6cd664
1 changed files with 8 additions and 2 deletions
|
|
@ -3799,10 +3799,16 @@ static void P_InitGametype(void)
|
|||
if (!demo.playback && multiplayer && !dedicated)
|
||||
{
|
||||
char buf[MAX_WADPATH];
|
||||
char ver[128];
|
||||
int parts;
|
||||
|
||||
sprintf(buf, "%s"PATHSEP"media"PATHSEP"replay"PATHSEP"online"PATHSEP"%s-%s"PATHSEP"%d-%s",
|
||||
srb2home, compbranch, comprevision, (int) (time(NULL)), G_BuildMapName(gamemap));
|
||||
#ifdef DEVELOP
|
||||
sprintf(ver, "%s-%s", compbranch, comprevision);
|
||||
#else
|
||||
strcpy(ver, VERSIONSTRING);
|
||||
#endif
|
||||
sprintf(buf, "%s"PATHSEP"media"PATHSEP"replay"PATHSEP"online"PATHSEP"%s"PATHSEP"%d-%s",
|
||||
srb2home, ver, (int) (time(NULL)), G_BuildMapName(gamemap));
|
||||
|
||||
parts = M_PathParts(buf);
|
||||
M_MkdirEachUntil(buf, parts - 5, parts - 1, 0755);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue