mirror of https://github.com/OpenRCT2/OpenRCT2.git
Remove some hard coded numbers
This commit is contained in:
parent
87bdd4d079
commit
7a982503a8
|
@ -1442,7 +1442,7 @@ static bool sub_679074(rct_drawpixelinfo *dpi, sint32 imageId, sint16 x, sint16
|
|||
static bool sub_679023(rct_drawpixelinfo *dpi, sint32 imageId, sint32 x, sint32 y)
|
||||
{
|
||||
const uint8 * palette = nullptr;
|
||||
imageId &= 0xBFFFFFFF;
|
||||
imageId &= ~IMAGE_TYPE_TRANSPARENT;
|
||||
if (imageId & IMAGE_TYPE_REMAP) {
|
||||
_currentImageType = IMAGE_TYPE_REMAP;
|
||||
sint32 index = (imageId >> 19) & 0x7F;
|
||||
|
|
|
@ -848,7 +848,7 @@ bool track_paint_util_draw_station_covers_2(paint_session * session, enum edge_t
|
|||
|
||||
if (baseImageId & IMAGE_TYPE_TRANSPARENT)
|
||||
{
|
||||
imageId = (baseImageId & 0xBFFFFFFF) + imageOffset;
|
||||
imageId = (baseImageId & ~IMAGE_TYPE_TRANSPARENT) + imageOffset;
|
||||
sub_98197C(
|
||||
session, imageId, (sint8)offset.x, (sint8)offset.y, bounds.x, bounds.y, (sint8)bounds.z, offset.z, boundsOffset.x,
|
||||
boundsOffset.y, boundsOffset.z);
|
||||
|
@ -856,7 +856,7 @@ bool track_paint_util_draw_station_covers_2(paint_session * session, enum edge_t
|
|||
uint32 edi = session->TrackColours[SCHEME_TRACK] & (0b11111 << 19);
|
||||
|
||||
// weird jump
|
||||
imageId = (baseImageId | edi) + 0x3800000 + imageOffset + 12;
|
||||
imageId = (baseImageId | edi) + ((1 << 23) | (1 << 24) | (1 << 25)) + imageOffset + 12;
|
||||
sub_98199C(
|
||||
session, imageId, (sint8)offset.x, (sint8)offset.y, bounds.x, bounds.y, (sint8)bounds.z, offset.z, boundsOffset.x,
|
||||
boundsOffset.y, boundsOffset.z);
|
||||
|
|
Loading…
Reference in New Issue