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