mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
ignore too short demo lumps
not only empty ones
This commit is contained in:
parent
00e17c0e1f
commit
f8aaa2bfab
@ -1124,8 +1124,8 @@ 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
|
// [FG] ignore too short demo lumps
|
||||||
if (!demobuffer)
|
if (W_LumpLength(W_GetNumForName(basename)) < 0xd)
|
||||||
{
|
{
|
||||||
gameaction = ga_nothing;
|
gameaction = ga_nothing;
|
||||||
demoplayback = true;
|
demoplayback = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user