mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
G_DoPlayDemo: Make sure buffer is NULL so you can watch replays immediately after recording them.
This is yet another g_demo.c-specific hack, and has been marked as such.
This commit is contained in:
parent
5b4fc18264
commit
bf8d09980d
1 changed files with 4 additions and 0 deletions
|
|
@ -3060,6 +3060,10 @@ void G_DoPlayDemo(const char *defdemoname)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// FIXME: this file doesn't manage its memory and actually free this when it's done using it
|
||||||
|
Z_Free(demobuf.buffer);
|
||||||
|
demobuf.buffer = NULL;
|
||||||
|
|
||||||
n = defdemoname+strlen(defdemoname);
|
n = defdemoname+strlen(defdemoname);
|
||||||
while (*n != '/' && *n != '\\' && n != defdemoname)
|
while (*n != '/' && *n != '\\' && n != defdemoname)
|
||||||
n--;
|
n--;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue