From 2ddde8a344646d9387f609cbb68f6a5c8ccdc466 Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Mon, 9 Dec 2019 17:19:45 -0300 Subject: [PATCH] Simplify attach calculation on Paint.cpp --- src/openrct2/paint/Paint.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/openrct2/paint/Paint.cpp b/src/openrct2/paint/Paint.cpp index 9f1cf007ab..b157f88600 100644 --- a/src/openrct2/paint/Paint.cpp +++ b/src/openrct2/paint/Paint.cpp @@ -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: