Fix http://forums.3drealms.com/vb/showpost.php?p=439437 and bump demo/savegame version number due to a change in the size of the spriteext struct

git-svn-id: https://svn.eduke32.com/eduke32@328 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-11-05 06:54:22 +00:00
parent 90eb35a551
commit 44d1866c5a
4 changed files with 5 additions and 4 deletions

View file

@ -151,7 +151,7 @@ typedef struct BPACK {
short mdanimcur; short mdanimcur;
short angoff; short angoff;
short pitch, roll; short pitch, roll;
short xoff, yoff, zoff; long xoff, yoff, zoff;
unsigned char flags; unsigned char flags;
char filler[3]; char filler[3];
} spriteexttype; } spriteexttype;

View file

@ -4627,6 +4627,7 @@ if (dastat&16) { xoff = 0; yoff = 0; }
setgotpic(picnum); setgotpic(picnum);
bufplc = waloff[picnum]; bufplc = waloff[picnum];
if(!palookup[dapalnum]) dapalnum = 0;
palookupoffs = FP_OFF(palookup[dapalnum]) + (getpalookup(0L,(long)dashade)<<8); palookupoffs = FP_OFF(palookup[dapalnum]) + (getpalookup(0L,(long)dashade)<<8);
i = divscale32(1L,z); i = divscale32(1L,z);

View file

@ -1523,9 +1523,9 @@ void Keys3d(void)
} }
if (tabgraphic == 1 ) if (tabgraphic == 1 )
rotatesprite((44)<<16,(114)<<16,32768,0,temppicnum,tempshade,temppal,2,0L,0L,xdim-1L,ydim-1L); rotatesprite((44+tilesizx[temppicnum])<<16,(114)<<16,32768,0,temppicnum,tempshade,temppal,2,0L,0L,xdim-1L,ydim-1L);
else if (tabgraphic == 2 ) else if (tabgraphic == 2 )
rotatesprite((44)<<16,(114)<<16,16384,0,temppicnum,tempshade,temppal,2,0L,0L,xdim-1L,ydim-1L); rotatesprite((44+tilesizx[temppicnum])<<16,(114)<<16,16384,0,temppicnum,tempshade,temppal,2,0L,0L,xdim-1L,ydim-1L);
begindrawing(); begindrawing();
j = xdimgame>640?0:1; j = xdimgame>640?0:1;

View file

@ -62,7 +62,7 @@ extern int conversion, shareware, gametype;
#define BYTEVERSION_13 27 #define BYTEVERSION_13 27
#define BYTEVERSION_14 116 #define BYTEVERSION_14 116
#define BYTEVERSION_15 117 #define BYTEVERSION_15 117
#define BYTEVERSION_JF 168 // increase by 3, because atomic GRP adds 1, and Shareware adds 2 #define BYTEVERSION_JF 171 // increase by 3, because atomic GRP adds 1, and Shareware adds 2
#define BYTEVERSION (BYTEVERSION_JF+(PLUTOPAK?1:(VOLUMEONE<<1))) // JBF 20040116: different data files give different versions #define BYTEVERSION (BYTEVERSION_JF+(PLUTOPAK?1:(VOLUMEONE<<1))) // JBF 20040116: different data files give different versions