mirror of https://github.com/OpenRCT2/OpenRCT2.git
Simplify attach calculation on Paint.cpp
This commit is contained in:
parent
5b43f19708
commit
2ddde8a344
|
@ -890,9 +890,7 @@ paint_struct* sub_98197C(
|
|||
|
||||
session->LastRootPS = ps;
|
||||
|
||||
CoordsXY attach = { ps->bounds.x, ps->bounds.y };
|
||||
|
||||
attach = attach.Rotate(session->CurrentRotation);
|
||||
auto attach = CoordsXY{ ps->bounds.x, ps->bounds.y }.Rotate(session->CurrentRotation);
|
||||
switch (session->CurrentRotation)
|
||||
{
|
||||
case 0:
|
||||
|
|
Loading…
Reference in New Issue