Suggested Improvements

This commit is contained in:
wolfreak99 2016-08-16 02:28:50 -04:00
parent 791733a571
commit 706b622464
3 changed files with 14 additions and 15 deletions

View File

@ -677,7 +677,7 @@ void viewport_render(rct_drawpixelinfo *dpi, rct_viewport *viewport, int left, i
void viewport_paint(rct_viewport* viewport, rct_drawpixelinfo* dpi, int left, int top, int right, int bottom){
gCurrentViewportFlags = viewport->flags;
//This should still be updated until the rest of supports, etc, is reverse-engineered. Otherwise
// Wooden Coaster supports (and a few other coaster supports) will still appear even if "invisible supports"
// supports for unimplemented rollercoasters will still appear even if "invisible supports"
// are enabled.
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_VIEWPORT_FLAGS, uint16) = (uint16)viewport->flags;
RCT2_GLOBAL(RCT2_ADDRESS_VIEWPORT_ZOOM, uint16) = viewport->zoom;

View File

@ -43,19 +43,19 @@ enum {
};
enum {
VIEWPORT_INTERACTION_ITEM_NONE = 0,
VIEWPORT_INTERACTION_ITEM_TERRAIN = 1,
VIEWPORT_INTERACTION_ITEM_SPRITE = 2,
VIEWPORT_INTERACTION_ITEM_RIDE = 3,
VIEWPORT_INTERACTION_ITEM_WATER = 4,
VIEWPORT_INTERACTION_ITEM_SCENERY = 5,
VIEWPORT_INTERACTION_ITEM_FOOTPATH = 6,
VIEWPORT_INTERACTION_ITEM_FOOTPATH_ITEM = 7,
VIEWPORT_INTERACTION_ITEM_PARK = 8,
VIEWPORT_INTERACTION_ITEM_WALL = 9,
VIEWPORT_INTERACTION_ITEM_LARGE_SCENERY = 10,
VIEWPORT_INTERACTION_ITEM_LABEL = 11,
VIEWPORT_INTERACTION_ITEM_BANNER = 12,
VIEWPORT_INTERACTION_ITEM_NONE,
VIEWPORT_INTERACTION_ITEM_TERRAIN,
VIEWPORT_INTERACTION_ITEM_SPRITE,
VIEWPORT_INTERACTION_ITEM_RIDE,
VIEWPORT_INTERACTION_ITEM_WATER,
VIEWPORT_INTERACTION_ITEM_SCENERY,
VIEWPORT_INTERACTION_ITEM_FOOTPATH,
VIEWPORT_INTERACTION_ITEM_FOOTPATH_ITEM,
VIEWPORT_INTERACTION_ITEM_PARK,
VIEWPORT_INTERACTION_ITEM_WALL,
VIEWPORT_INTERACTION_ITEM_LARGE_SCENERY,
VIEWPORT_INTERACTION_ITEM_LABEL,
VIEWPORT_INTERACTION_ITEM_BANNER,
};

View File

@ -76,7 +76,6 @@ typedef struct rct_widget {
/**
* Viewport structure
* size: 0x14
*/
typedef struct rct_viewport {
sint16 width; // 0x00