1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 01:35:06 +01:00

Pass paint_session as reference

This commit is contained in:
Michael Steenbeek
2021-12-19 15:48:00 +01:00
committed by GitHub
parent 2cf62abf85
commit 25cb49f8ce
117 changed files with 30412 additions and 32161 deletions

View File

@@ -2678,7 +2678,7 @@ void Peep::Serialise(DataSerialiser& stream)
stream << PeepFlags;
}
void Peep::Paint(paint_session* session, int32_t imageDirection) const
void Peep::Paint(paint_session& session, int32_t imageDirection) const
{
#ifdef __ENABLE_LIGHTFX__
if (lightfx_is_available())
@@ -2709,13 +2709,13 @@ void Peep::Paint(paint_session* session, int32_t imageDirection) const
}
#endif
rct_drawpixelinfo* dpi = &session->DPI;
rct_drawpixelinfo* dpi = &session.DPI;
if (dpi->zoom_level > ZoomLevel{ 2 })
{
return;
}
if (session->ViewFlags & VIEWPORT_FLAG_INVISIBLE_PEEPS)
if (session.ViewFlags & VIEWPORT_FLAG_INVISIBLE_PEEPS)
{
return;
}