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:
committed by
GitHub
parent
2cf62abf85
commit
25cb49f8ce
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user