ignore too short demo lumps

not only empty ones
This commit is contained in:
Fabian Greffrath 2020-01-11 11:34:13 +01:00
parent 00e17c0e1f
commit f8aaa2bfab

View File

@ -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;