More consistent netreplay wadfile list writing

Fixes crashes for newly-written demos that have files with absurdly long names attached
This commit is contained in:
toaster 2022-10-30 13:13:42 +00:00
parent e931f2bec2
commit a6c825dd16

View file

@ -6769,7 +6769,7 @@ void G_BeginRecording(void)
if (wadfiles[i]->important)
{
nameonly(( filename = va("%s", wadfiles[i]->filename) ));
WRITESTRINGN(demo_p, filename, 64);
WRITESTRINGL(demo_p, filename, MAX_WADPATH);
WRITEMEM(demo_p, wadfiles[i]->md5sum, 16);
totalfiles++;