1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Simplify attach calculation on Paint.cpp

This commit is contained in:
Tulio Leao
2019-12-09 17:19:45 -03:00
parent 5b43f19708
commit 2ddde8a344

View File

@@ -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: