forked from rosebudai/OpenRCT2-Web
Turn construction marker into a define
This commit is contained in:
1 parent
1ef73997b5
commit
273edee634
10 files changed
+12
-15
No files matched your search
@@ -3845,7 +3845,7 @@ STR_5503 :Enter hostname or IP address:
|
||||
STR_5504 :{SMALLFONT}{BLACK}Show multiplayer status
|
||||
STR_5505 :Unable to connect to server.
|
||||
STR_5506 :Guests ignore intensities
|
||||
STR_5507 :<not used anymore>
|
||||
STR_5507 :<removed string - do not use>
|
||||
STR_5508 :Allow loading files with incorrect checksums
|
||||
STR_5509 :{SMALLFONT}{BLACK}Allows loading scenarios and saves{NEWLINE}that have an incorrect checksum,{NEWLINE}like the scenarios from the demo{NEWLINE}or damaged saves.
|
||||
STR_5510 :Default sound device
|
||||
|
||||
@@ -28,9 +28,6 @@
|
||||
// Global for paint clipping height
|
||||
uint8 gClipHeight = 128; // Default to middle value
|
||||
|
||||
// Global for (white) construction marker mask.
|
||||
uint32 const gConstructionMarker = COLOUR_DARK_GREEN << 19 | COLOUR_GREY << 24 | IMAGE_TYPE_REMAP;
|
||||
|
||||
paint_session gPaintSession;
|
||||
static bool _paintSessionInUse;
|
||||
|
||||
|
||||
@@ -210,8 +210,8 @@ extern "C" {
|
||||
// Global for paint clipping height.
|
||||
extern uint8 gClipHeight;
|
||||
|
||||
/** rct2: 0x00993CC4 */
|
||||
extern const uint32 gConstructionMarker;
|
||||
/** rct2: 0x00993CC4. The white ghost that indicates not-yet-built elements. */
|
||||
#define CONSTRUCTION_MARKER (COLOUR_DARK_GREEN << 19 | COLOUR_GREY << 24 | IMAGE_TYPE_REMAP);
|
||||
extern bool gShowDirtyVisuals;
|
||||
extern bool gPaintBoundingBoxes;
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ void banner_paint(paint_session * session, uint8 direction, sint32 height, rct_t
|
||||
if (tile_element->flags & TILE_ELEMENT_FLAG_GHOST) // if being placed
|
||||
{
|
||||
session->InteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
image_id |= gConstructionMarker;
|
||||
image_id |= CONSTRUCTION_MARKER;
|
||||
}
|
||||
else{
|
||||
image_id |=
|
||||
|
||||
@@ -86,7 +86,7 @@ static void ride_entrance_exit_paint(paint_session * session, uint8 direction, s
|
||||
|
||||
if (tile_element->flags & TILE_ELEMENT_FLAG_GHOST){
|
||||
session->InteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
image_id = gConstructionMarker;
|
||||
image_id = CONSTRUCTION_MARKER;
|
||||
_unk9E32BC = image_id;
|
||||
if (transparant_image_id)
|
||||
transparant_image_id = image_id;
|
||||
@@ -200,7 +200,7 @@ static void park_entrance_paint(paint_session * session, uint8 direction, sint32
|
||||
uint32 image_id, ghost_id = 0;
|
||||
if (tile_element->flags & TILE_ELEMENT_FLAG_GHOST){
|
||||
session->InteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
ghost_id = gConstructionMarker;
|
||||
ghost_id = CONSTRUCTION_MARKER;
|
||||
_unk9E32BC = ghost_id;
|
||||
}
|
||||
|
||||
|
||||
@@ -173,7 +173,7 @@ void fence_paint(paint_session * session, uint8 direction, sint32 height, rct_ti
|
||||
|
||||
if (tile_element->flags & TILE_ELEMENT_FLAG_GHOST) {
|
||||
session->InteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
dword_141F710 = gConstructionMarker;
|
||||
dword_141F710 = CONSTRUCTION_MARKER;
|
||||
}
|
||||
|
||||
// Save tile_element
|
||||
|
||||
@@ -208,7 +208,7 @@ void large_scenery_paint(paint_session * session, uint8 direction, uint16 height
|
||||
}
|
||||
if (tileElement->flags & TILE_ELEMENT_FLAG_GHOST) {
|
||||
session->InteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
sequenceNum = gConstructionMarker;
|
||||
sequenceNum = CONSTRUCTION_MARKER;
|
||||
image_id &= 0x7FFFF;
|
||||
dword_F4387C = sequenceNum;
|
||||
image_id |= dword_F4387C;
|
||||
|
||||
@@ -686,12 +686,12 @@ void path_paint(paint_session * session, uint8 direction, uint16 height, rct_til
|
||||
}
|
||||
|
||||
if (footpath_element_path_scenery_is_ghost(tile_element)) {
|
||||
sceneryImageFlags = gConstructionMarker;
|
||||
sceneryImageFlags = CONSTRUCTION_MARKER;
|
||||
}
|
||||
|
||||
if (tile_element->flags & TILE_ELEMENT_FLAG_GHOST) {
|
||||
session->InteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
imageFlags = gConstructionMarker;
|
||||
imageFlags = CONSTRUCTION_MARKER;
|
||||
}
|
||||
|
||||
sint16 x = session->MapPosition.x, y = session->MapPosition.y;
|
||||
|
||||
@@ -60,7 +60,7 @@ void scenery_paint(paint_session * session, uint8 direction, sint32 height, rct_
|
||||
}
|
||||
if (tileElement->flags & TILE_ELEMENT_FLAG_GHOST) {
|
||||
session->InteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
baseImageid = gConstructionMarker;
|
||||
baseImageid = CONSTRUCTION_MARKER;
|
||||
}
|
||||
uint32 dword_F64EB0 = baseImageid;
|
||||
|
||||
|
||||
@@ -1779,7 +1779,7 @@ void track_paint(paint_session * session, uint8 direction, sint32 height, rct_ti
|
||||
session->TrackColours[SCHEME_3] = 0x21600000;
|
||||
}
|
||||
if (tileElement->flags & TILE_ELEMENT_FLAG_GHOST) {
|
||||
uint32 ghost_id = gConstructionMarker;
|
||||
uint32 ghost_id = CONSTRUCTION_MARKER;
|
||||
session->InteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
session->TrackColours[SCHEME_TRACK] = ghost_id;
|
||||
session->TrackColours[SCHEME_SUPPORTS] = ghost_id;
|
||||
|
||||
Reference in new issue
Block a user