mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- part of RefreshPoints
This commit is contained in:
parent
09104ba6fe
commit
85be297a2d
1 changed files with 4 additions and 5 deletions
|
@ -1792,12 +1792,11 @@ void RefreshPoints(SECTOR_OBJECT* sop, int nx, int ny, bool dynamic)
|
|||
}
|
||||
else
|
||||
{
|
||||
int xmul = int(sop->scale_dist * sop->scale_x_mult)>>4;
|
||||
int ymul = int(sop->scale_dist * sop->scale_y_mult)>>4;
|
||||
DVector2 mul(xmul / 16., ymul / 16.);
|
||||
double xmul = (sop->scale_dist * sop->scale_x_mult) / 256.;
|
||||
double ymul = (sop->scale_dist * sop->scale_y_mult) / 256.;
|
||||
|
||||
dpos.X = pos.X + mul.X * ang.Cos();
|
||||
dpos.Y = pos.Y + mul.Y * ang.Sin();
|
||||
dpos.X = pos.X + xmul * ang.Cos();
|
||||
dpos.Y = pos.Y + ymul * ang.Sin();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue