mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-21 03:11:03 +00:00
No need for oldxoffs.
This commit is contained in:
parent
0ff036c2e2
commit
ab34bd231b
1 changed files with 4 additions and 4 deletions
|
@ -979,15 +979,15 @@ yoffs += (originy + (1 << (31-nflatshiftup))) & ~((1 << (32-nflatshiftup))-1)
|
|||
const fixed_t ox = FixedMul(pl->slope->o.x,cosinecomponent)+FixedMul(pl->slope->o.y,sinecomponent);
|
||||
const fixed_t oy = -FixedMul(pl->slope->o.x,sinecomponent)+FixedMul(pl->slope->o.y,cosinecomponent);
|
||||
|
||||
fixed_t oldxoffs = xoffs;
|
||||
temp = xoffs;
|
||||
xoffs = FixedMul(xoffs,cosinecomponent)+FixedMul(yoffs,sinecomponent);
|
||||
yoffs = -FixedMul(oldxoffs,sinecomponent)+FixedMul(yoffs,cosinecomponent);
|
||||
yoffs = -FixedMul(temp,sinecomponent)+FixedMul(yoffs,cosinecomponent);
|
||||
|
||||
incorporateorigin(ox, oy);
|
||||
|
||||
oldxoffs = xoffs;
|
||||
temp = xoffs;
|
||||
xoffs = FixedMul(xoffs,cosinecomponent)+FixedMul(yoffs,-sinecomponent); // negative sine for opposite direction
|
||||
yoffs = -FixedMul(oldxoffs,-sinecomponent)+FixedMul(yoffs,cosinecomponent); // ditto
|
||||
yoffs = -FixedMul(temp,-sinecomponent)+FixedMul(yoffs,cosinecomponent); // ditto
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue