mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 06:41:59 +00:00
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:
parent
257b446320
commit
570e66d2ab
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue