Use an unsigned type when we need right shifts to zero-extend for use in tagbitmap.

Fixes crash in boeing.map.

git-svn-id: https://svn.eduke32.com/eduke32@6644 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-02-11 05:03:50 +00:00
parent 65b3bccf06
commit 0cbb522ff0

View file

@ -1185,7 +1185,7 @@ static void prelevel(char g)
// the lower code only for the 'on' state (*)
if (ii==0)
{
int const tag = sprite[i].lotag;
uint16_t const tag = sprite[i].lotag;
tagbitmap[tag>>3] |= 1<<(tag&7);
}
@ -1197,7 +1197,7 @@ static void prelevel(char g)
// initially 'on' SE 12 light (*)
for (bssize_t j=headspritestat[STAT_EFFECTOR]; j>=0; j=nextspritestat[j])
{
int const tag = sprite[j].hitag;
uint16_t const tag = sprite[j].hitag;
if (sprite[j].lotag == SE_12_LIGHT_SWITCH && tagbitmap[tag>>3]&(1<<(tag&7)))
actor[j].t_data[0] = 1;