mirror of https://github.com/OpenRCT2/OpenRCT2.git
Refactor uses of PaintAddImageAsParent in Monorail.cpp
This commit is contained in:
parent
2aed03ca5f
commit
74f0cf8063
|
@ -426,11 +426,11 @@ static void paint_monorail_track_flat(
|
|||
|
||||
if (direction == 0 || direction == 2)
|
||||
{
|
||||
PaintAddImageAsParent(session, imageId, 0, 6, 32, 20, 3, height);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 32, 20, 3 });
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintAddImageAsParent(session, imageId, 6, 0, 20, 32, 3, height);
|
||||
PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 20, 32, 3 });
|
||||
}
|
||||
|
||||
if (direction == 0 || direction == 2)
|
||||
|
@ -515,11 +515,11 @@ static void paint_monorail_track_25_deg_up(
|
|||
|
||||
if (direction == 0 || direction == 2)
|
||||
{
|
||||
PaintAddImageAsParent(session, imageId, 0, 6, 32, 20, 3, height);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 32, 20, 3 });
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintAddImageAsParent(session, imageId, 6, 0, 20, 32, 3, height);
|
||||
PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 20, 32, 3 });
|
||||
}
|
||||
|
||||
switch (direction)
|
||||
|
@ -557,11 +557,11 @@ static void paint_monorail_track_flat_to_25_deg_up(
|
|||
|
||||
if (direction == 0 || direction == 2)
|
||||
{
|
||||
PaintAddImageAsParent(session, imageId, 0, 6, 32, 20, 3, height);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 32, 20, 3 });
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintAddImageAsParent(session, imageId, 6, 0, 20, 32, 3, height);
|
||||
PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 20, 32, 3 });
|
||||
}
|
||||
|
||||
switch (direction)
|
||||
|
@ -599,11 +599,11 @@ static void paint_monorail_track_25_deg_up_to_flat(
|
|||
|
||||
if (direction == 0 || direction == 2)
|
||||
{
|
||||
PaintAddImageAsParent(session, imageId, 0, 6, 32, 20, 3, height);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 6, height }, { 32, 20, 3 });
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintAddImageAsParent(session, imageId, 6, 0, 20, 32, 3, height);
|
||||
PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 20, 32, 3 });
|
||||
}
|
||||
|
||||
switch (direction)
|
||||
|
|
Loading…
Reference in New Issue