mirror of
https://github.com/ZDoom/Raze.git
synced 2025-04-07 08:22:01 +00:00
- fixed some warnings.
This commit is contained in:
parent
83fc7a3116
commit
836d7fea34
1 changed files with 3 additions and 3 deletions
|
@ -2794,9 +2794,9 @@ void handle_se14(DDukeActor* actor, bool checkstat, int RPG, int JIBS6)
|
|||
}
|
||||
if ((!checkstat || !statstate) && (ud.monsters_off == 0 && sc->floorpal == 0 && (sc->floorstat & CSTAT_SECTOR_SKY) && rnd(8)))
|
||||
{
|
||||
int dist;
|
||||
int p = findplayer(actor, &dist);
|
||||
if (dist < 20480)
|
||||
double dist2;
|
||||
int p = findplayer(actor, &dist2);
|
||||
if (dist2 < 1280)//20480)
|
||||
{
|
||||
auto saved_angle = actor->spr.angle;
|
||||
actor->spr.angle = VecToAngle(actor->spr.pos.XY() - ps[p].pos.XY());
|
||||
|
|
Loading…
Reference in a new issue