fix mistake in sub_679023

This commit is contained in:
IntelOrca 2015-07-11 19:37:19 +01:00
parent 5deb97a745
commit 9dca351e8d
1 changed files with 3 additions and 3 deletions

View File

@ -2353,9 +2353,6 @@ void sub_679023(rct_drawpixelinfo *dpi, int imageId, int x, int y)
RCT2_GLOBAL(0x00141F569, uint8) = 0;
imageId &= 0xBFFFFFFF;
if (imageId & 0x20000000) {
RCT2_GLOBAL(0x00EDF81C, uint32) = 0;
sub_679074(dpi, imageId, x, y);
} else {
RCT2_GLOBAL(0x00EDF81C, uint32) = 0x20000000;
int index = (imageId >> 19) & 0x7F;
if (imageId & 0x80000000) {
@ -2363,6 +2360,9 @@ void sub_679023(rct_drawpixelinfo *dpi, int imageId, int x, int y)
}
int g1Index = RCT2_ADDRESS(0x0097FCBC, uint32)[index] << 4;
RCT2_GLOBAL(0x009ABDA4, uint8*) = g1Elements[g1Index].offset;
} else {
RCT2_GLOBAL(0x00EDF81C, uint32) = 0;
sub_679074(dpi, imageId, x, y);
}
}