mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
65b3bccf06
commit
0cbb522ff0
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue