mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 13:00:43 +00:00
- crash fix in spawn and camera fix.
This commit is contained in:
parent
afd059d6a1
commit
a8212f0756
2 changed files with 3 additions and 3 deletions
|
@ -1720,7 +1720,7 @@ void checksectors_d(int snum)
|
||||||
p->cursectnum = j;
|
p->cursectnum = j;
|
||||||
|
|
||||||
// parallaxtype = 2;
|
// parallaxtype = 2;
|
||||||
p->newowner = i;
|
p->newowner = acti->GetIndex();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,8 +50,8 @@ int spawn_d(int j, int pn)
|
||||||
i &= 0xffffff;
|
i &= 0xffffff;
|
||||||
auto act = &hittype[i];
|
auto act = &hittype[i];
|
||||||
auto sp = &act->s;
|
auto sp = &act->s;
|
||||||
auto actj = &hittype[j];
|
auto actj = j == -1 ? nullptr : &hittype[j];
|
||||||
auto spj = &actj->s;
|
auto spj = j == -1 ? nullptr : &actj->s;
|
||||||
auto t = act->temp_data;
|
auto t = act->temp_data;
|
||||||
int sect = sp->sectnum;
|
int sect = sp->sectnum;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue