forked from rosebudai/OpenRCT2-Web
Simplify attach calculation on Paint.cpp
This commit is contained in:
1 parent
5b43f19708
commit
2ddde8a344
1 file changed
+1
-3
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user