mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-01 14:11:01 +00:00
- fixed three crashes found when testing WW2GI.
This commit is contained in:
parent
a514910aa4
commit
61013af910
3 changed files with 3 additions and 3 deletions
|
@ -1505,7 +1505,7 @@ static bool ifcansee(DDukeActor* actor, int pnum)
|
||||||
int ParseState::parse(void)
|
int ParseState::parse(void)
|
||||||
{
|
{
|
||||||
int j, l, s;
|
int j, l, s;
|
||||||
auto g_sp = &g_ac->s;
|
auto g_sp = g_ac? &g_ac->s : nullptr;
|
||||||
|
|
||||||
if(killit_flag) return 1;
|
if(killit_flag) return 1;
|
||||||
|
|
||||||
|
|
|
@ -1117,7 +1117,7 @@ void shootbloodsplat(int i, int p, int sx, int sy, int sz, int sa, int atwith, i
|
||||||
spawned->s.y = hity;
|
spawned->s.y = hity;
|
||||||
spawned->s.z = hitz;
|
spawned->s.z = hitz;
|
||||||
spawned->s.cstat |= (krand() & 4);
|
spawned->s.cstat |= (krand() & 4);
|
||||||
ssp(k, CLIPMASK0);
|
ssp(spawned, CLIPMASK0);
|
||||||
setsprite(spawned, spawned->s.pos);
|
setsprite(spawned, spawned->s.pos);
|
||||||
if (s->picnum == OOZFILTER || s->picnum == NEWBEAST)
|
if (s->picnum == OOZFILTER || s->picnum == NEWBEAST)
|
||||||
spawned->s.pal = 6;
|
spawned->s.pal = 6;
|
||||||
|
|
|
@ -320,7 +320,7 @@ static void shootweapon(int i, int p, int sx, int sy, int sz, int sa, int atwith
|
||||||
auto s = &actor->s;
|
auto s = &actor->s;
|
||||||
int sect = s->sectnum;
|
int sect = s->sectnum;
|
||||||
int zvel;
|
int zvel;
|
||||||
short hitsect, hitspr, hitwall, l, j, k;
|
short hitsect, hitspr, hitwall, l, j, k = -1;
|
||||||
int hitx, hity, hitz;
|
int hitx, hity, hitz;
|
||||||
|
|
||||||
if (s->extra >= 0) s->shade = -96;
|
if (s->extra >= 0) s->shade = -96;
|
||||||
|
|
Loading…
Reference in a new issue