mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- Duke: Remove only place rotatepoint()
is called where no pivot is used.
This commit is contained in:
parent
4df875e860
commit
2fc115a23d
1 changed files with 2 additions and 5 deletions
|
@ -282,14 +282,11 @@ void lotsofstuff(DDukeActor* actor, int n, int spawntype)
|
|||
void movesector(DDukeActor* const actor, int msindex, DAngle rotation)
|
||||
{
|
||||
//T1,T2 and T3 are used for all the sector moving stuff!!!
|
||||
actor->spr.pos.X += actor->vel.X * actor->spr.angle.Cos();
|
||||
actor->spr.pos.Y += actor->vel.X * actor->spr.angle.Sin();
|
||||
actor->spr.pos.XY() += actor->spr.angle.ToVector() * actor->vel.X;
|
||||
|
||||
for(auto& wal : wallsofsector(actor->sector()))
|
||||
{
|
||||
auto t = rotatepoint({ 0, 0 }, mspos[msindex], rotation);
|
||||
|
||||
dragpoint(&wal, actor->spr.pos.XY() + t);
|
||||
dragpoint(&wal, actor->spr.pos.XY() + mspos[msindex].Rotated(rotation));
|
||||
msindex++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue