mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10: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 (*)
|
// the lower code only for the 'on' state (*)
|
||||||
if (ii==0)
|
if (ii==0)
|
||||||
{
|
{
|
||||||
int const tag = sprite[i].lotag;
|
uint16_t const tag = sprite[i].lotag;
|
||||||
tagbitmap[tag>>3] |= 1<<(tag&7);
|
tagbitmap[tag>>3] |= 1<<(tag&7);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1197,7 +1197,7 @@ static void prelevel(char g)
|
||||||
// initially 'on' SE 12 light (*)
|
// initially 'on' SE 12 light (*)
|
||||||
for (bssize_t j=headspritestat[STAT_EFFECTOR]; j>=0; j=nextspritestat[j])
|
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)))
|
if (sprite[j].lotag == SE_12_LIGHT_SWITCH && tagbitmap[tag>>3]&(1<<(tag&7)))
|
||||||
actor[j].t_data[0] = 1;
|
actor[j].t_data[0] = 1;
|
||||||
|
|
Loading…
Reference in a new issue