mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
- the final wall iterators.
This commit is contained in:
parent
bb315f8148
commit
4acca06c71
2 changed files with 4 additions and 6 deletions
|
@ -368,16 +368,14 @@ int DoRotator(DSWActor* actor)
|
|||
if (!pivot)
|
||||
return 0;
|
||||
|
||||
startwall = sp->sector()->wallptr;
|
||||
endwall = startwall + sp->sector()->wallnum - 1;
|
||||
|
||||
// move points
|
||||
for (w = startwall, ndx = 0; w <= endwall; w++)
|
||||
ndx = 0;
|
||||
for(auto& wal : wallsofsector(sp->sector()))
|
||||
{
|
||||
vec2_t const orig = { r->origX[ndx], r->origY[ndx] };
|
||||
rotatepoint(pivot->pos.vec2, orig, r->pos, &nxy);
|
||||
|
||||
dragpoint(w, nxy.x, nxy.y);
|
||||
dragpoint(&wal, nxy.x, nxy.y);
|
||||
ndx++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue