mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- handle eel.cpp
This commit is contained in:
parent
fd5cf15e0e
commit
a95e7a9527
1 changed files with 4 additions and 6 deletions
|
@ -438,8 +438,6 @@ int NullEel(DSWActor* actor)
|
|||
|
||||
int DoEelMatchPlayerZ(DSWActor* actor)
|
||||
{
|
||||
int dist,a,b,c;
|
||||
|
||||
if (FAF_ConnectArea(actor->sector()))
|
||||
{
|
||||
if (actor->user.hi_sectp)
|
||||
|
@ -483,8 +481,8 @@ int DoEelMatchPlayerZ(DSWActor* actor)
|
|||
double bound;
|
||||
if (actor->user.lowActor && actor->user.targetActor == actor->user.highActor) // this doesn't look right...
|
||||
{
|
||||
DISTANCE(actor->spr.pos, actor->user.lowActor->spr.pos, dist, a, b, c);
|
||||
if (dist <= 300)
|
||||
double dist = (actor->spr.pos.XY() - actor->user.lowActor->spr.pos.XY()).Length();
|
||||
if (dist <= 18.75)
|
||||
bound = actor->user.pos.Z;
|
||||
else
|
||||
bound = loz - actor->user.floor_dist;
|
||||
|
@ -500,8 +498,8 @@ int DoEelMatchPlayerZ(DSWActor* actor)
|
|||
// upper bound
|
||||
if (actor->user.highActor && actor->user.targetActor == actor->user.highActor)
|
||||
{
|
||||
DISTANCE(actor->spr.pos, actor->user.highActor->spr.pos, dist, a, b, c);
|
||||
if (dist <= 300)
|
||||
double dist = (actor->spr.pos.XY() - actor->user.highActor->spr.pos.XY()).Length();
|
||||
if (dist <= 18.75)
|
||||
bound = actor->user.pos.Z;
|
||||
else
|
||||
bound = hiz + actor->user.ceiling_dist;
|
||||
|
|
Loading…
Reference in a new issue