Weapon changes broke demo sync, so removing version 160 compatibility

git-svn-id: https://svn.eduke32.com/eduke32@47 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-04-18 00:43:32 +00:00
parent 257b446320
commit 570e66d2ab

View file

@ -8582,7 +8582,7 @@ char opendemoread(char which_demo) // 0 = mine
if (kread(recfilep,&ud.reccnt,sizeof(long)) != sizeof(long)) goto corrupt; if (kread(recfilep,&ud.reccnt,sizeof(long)) != sizeof(long)) goto corrupt;
if (kread(recfilep,&ver,sizeof(char)) != sizeof(char)) goto corrupt; if (kread(recfilep,&ver,sizeof(char)) != sizeof(char)) goto corrupt;
if(ver != BYTEVERSION && ver != 160 /*&& ver != 116 && ver != 117*/) { /* old demo playback */ if(ver != BYTEVERSION /*&& ver != 116 && ver != 117*/) { /* old demo playback */
if (ver == BYTEVERSION_JF) initprintf("Demo %s is for Regular edition.\n", d); if (ver == BYTEVERSION_JF) initprintf("Demo %s is for Regular edition.\n", d);
else if (ver == BYTEVERSION_JF+1) initprintf("Demo %s is for Atomic edition.\n", d); else if (ver == BYTEVERSION_JF+1) initprintf("Demo %s is for Atomic edition.\n", d);
else if (ver == BYTEVERSION_JF+2) initprintf("Demo %s is for Shareware version.\n", d); else if (ver == BYTEVERSION_JF+2) initprintf("Demo %s is for Shareware version.\n", d);
@ -8592,9 +8592,7 @@ char opendemoread(char which_demo) // 0 = mine
demo_version = 0; demo_version = 0;
return 0; return 0;
} else { } else {
if(ver == 160) demo_version = ver;
demo_version = ver = BYTEVERSION;
else demo_version = ver;
OSD_Printf("Demo %s is of version %d.\n", d, ver); OSD_Printf("Demo %s is of version %d.\n", d, ver);
} }