Modify game_command_set_scenery_colour() to only take the scenery quadrant

This commit is contained in:
Michael Steenbeek committed 2018-10-31 13:10:26 +01:00
1 parent af2c1e69d1
commit 687fbc2a0a
3 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -992,9 +992,10 @@ static void repaint_scenery_tool_down(int16_t x, int16_t y, rct_widgetindex widg
scenery_entry, SMALL_SCENERY_FLAG_HAS_PRIMARY_COLOUR | SMALL_SCENERY_FLAG_HAS_GLASS))
return;
uint8_t quadrant = tile_element->AsSmallScenery()->GetSceneryQuadrant();
gGameCommandErrorTitle = STR_CANT_REPAINT_THIS;
game_do_command(
grid_x, 1 | (tile_element->type << 8), grid_y,
grid_x, GAME_COMMAND_FLAG_APPLY | quadrant, grid_y,
tile_element->base_height | (tile_element->AsSmallScenery()->GetEntryIndex() << 8),
GAME_COMMAND_SET_SCENERY_COLOUR, 0, gWindowSceneryPrimaryColour | (gWindowScenerySecondaryColour << 8));
break;
+1 -1
View File
@@ -28,7 +28,7 @@
// This string specifies which version of network stream current build uses.
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "2"
#define NETWORK_STREAM_VERSION "3"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static rct_peep* _pickup_peep = nullptr;
+2 -2
View File
@@ -431,8 +431,8 @@ void game_command_set_scenery_colour(
int32_t* ebp)
{
*ebx = SmallScenerySetColour(
*eax & 0xFFFF, *ecx & 0xFFFF, *edx & 0xFF, ((*ebx >> 8) & 0xFF) >> 6, (*edx >> 8) & 0xFF, *ebp & 0xFF,
(*ebp >> 8) & 0xFF, *ebx & 0xFF);
*eax & 0xFFFF, *ecx & 0xFFFF, *edx & 0xFF, ((*ebx >> 8) & 0xFF), (*edx >> 8) & 0xFF, *ebp & 0xFF, (*ebp >> 8) & 0xFF,
*ebx & 0xFF);
}
/**