mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 13:21:31 +00:00
Use function va to avoid having to delcare a new variable. Thanks MonsterIestyn.
This commit is contained in:
parent
4abfe1e8f3
commit
3b503f1336
1 changed files with 1 additions and 4 deletions
|
@ -5529,7 +5529,6 @@ void G_StopDemo(void)
|
|||
boolean G_CheckDemoStatus(void)
|
||||
{
|
||||
boolean saved;
|
||||
char fulldemoname[128]; //Demo name with srb2home path
|
||||
|
||||
if(ghosts) // ... ... ...
|
||||
ghosts = NULL; // :)
|
||||
|
@ -5580,9 +5579,7 @@ boolean G_CheckDemoStatus(void)
|
|||
WRITEUINT8(demo_p, DEMOMARKER); // add the demo end marker
|
||||
md5_buffer((char *)p+16, demo_p - (p+16), p); // make a checksum of everything after the checksum in the file.
|
||||
#endif
|
||||
|
||||
sprintf(fulldemoname, "%s"PATHSEP"%s", srb2home, demoname);
|
||||
saved = FIL_WriteFile(fulldemoname, demobuffer, demo_p - demobuffer); // finally output the file.
|
||||
saved = FIL_WriteFile(va(pandf, srb2home, demoname), demobuffer, demo_p - demobuffer); // finally output the file.
|
||||
free(demobuffer);
|
||||
demorecording = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue