mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
parent
c0c9c5e9c2
commit
be3672b831
@ -1124,6 +1124,15 @@ static void G_DoPlayDemo(void)
|
|||||||
|
|
||||||
demobuffer = demo_p = W_CacheLumpName (basename, PU_STATIC); // killough
|
demobuffer = demo_p = W_CacheLumpName (basename, PU_STATIC); // killough
|
||||||
|
|
||||||
|
// [FG] ignore empty demo lumps
|
||||||
|
if (!demobuffer)
|
||||||
|
{
|
||||||
|
gameaction = ga_nothing;
|
||||||
|
demoplayback = true;
|
||||||
|
G_CheckDemoStatus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// killough 2/22/98, 2/28/98: autodetect old demos and act accordingly.
|
// killough 2/22/98, 2/28/98: autodetect old demos and act accordingly.
|
||||||
// Old demos turn on demo_compatibility => compatibility; new demos load
|
// Old demos turn on demo_compatibility => compatibility; new demos load
|
||||||
// compatibility flag, and other flags as well, as a part of the demo.
|
// compatibility flag, and other flags as well, as a part of the demo.
|
||||||
@ -2508,7 +2517,11 @@ boolean G_CheckDemoStatus(void)
|
|||||||
if (singledemo)
|
if (singledemo)
|
||||||
exit(0); // killough
|
exit(0); // killough
|
||||||
|
|
||||||
|
// [FG] ignore empty demo lumps
|
||||||
|
if (demobuffer)
|
||||||
|
{
|
||||||
Z_ChangeTag(demobuffer, PU_CACHE);
|
Z_ChangeTag(demobuffer, PU_CACHE);
|
||||||
|
}
|
||||||
G_ReloadDefaults(); // killough 3/1/98
|
G_ReloadDefaults(); // killough 3/1/98
|
||||||
netgame = false; // killough 3/29/98
|
netgame = false; // killough 3/29/98
|
||||||
deathmatch = false;
|
deathmatch = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user