mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-27 19:50:51 +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 G_CheckDemoStatus(void)
|
||||||
{
|
{
|
||||||
boolean saved;
|
boolean saved;
|
||||||
char fulldemoname[128]; //Demo name with srb2home path
|
|
||||||
|
|
||||||
if(ghosts) // ... ... ...
|
if(ghosts) // ... ... ...
|
||||||
ghosts = NULL; // :)
|
ghosts = NULL; // :)
|
||||||
|
@ -5580,9 +5579,7 @@ boolean G_CheckDemoStatus(void)
|
||||||
WRITEUINT8(demo_p, DEMOMARKER); // add the demo end marker
|
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.
|
md5_buffer((char *)p+16, demo_p - (p+16), p); // make a checksum of everything after the checksum in the file.
|
||||||
#endif
|
#endif
|
||||||
|
saved = FIL_WriteFile(va(pandf, srb2home, demoname), demobuffer, demo_p - demobuffer); // finally output the file.
|
||||||
sprintf(fulldemoname, "%s"PATHSEP"%s", srb2home, demoname);
|
|
||||||
saved = FIL_WriteFile(fulldemoname, demobuffer, demo_p - demobuffer); // finally output the file.
|
|
||||||
free(demobuffer);
|
free(demobuffer);
|
||||||
demorecording = false;
|
demorecording = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue