mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-28 06:02:13 +00:00
- some more gron stuff.
This commit is contained in:
parent
58259d745b
commit
2c67b74dab
1 changed files with 3 additions and 3 deletions
|
@ -309,14 +309,14 @@ static void attackgron(PLAYER& plr, short const i) {
|
||||||
else {
|
else {
|
||||||
spr.lotag -= TICSPERFRAME;
|
spr.lotag -= TICSPERFRAME;
|
||||||
if (spr.lotag < 0) {
|
if (spr.lotag < 0) {
|
||||||
if (cansee(plr.x, plr.y, plr.z, plr.sector, sprite[i].x, sprite[i].y,
|
if (cansee(plr.x, plr.y, plr.z, plr.sector, spr.x, spr.y,
|
||||||
spr.z - (tileHeight(sprite[i].picnum) << 7), sprite[i].sectnum))
|
spr.z - (tileHeight(spr.picnum) << 7), spr.sectnum))
|
||||||
newstatus(i, CAST);
|
newstatus(i, CAST);
|
||||||
else
|
else
|
||||||
newstatus(i, CHASE);
|
newstatus(i, CHASE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
spr.ang = getangle(plr.x - sprite[i].x, plr.y - sprite[i].y);
|
spr.ang = getangle(plr.x - spr.x, plr.y - spr.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
checksector6(i);
|
checksector6(i);
|
||||||
|
|
Loading…
Reference in a new issue