mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 09:14:58 +01:00
implement finish-map-window part 1
This commit is contained in:
@@ -267,6 +267,12 @@
|
||||
#define RCT2_ADDRESS_SELECTED_TERRAIN_EDGE 0x009E2E24
|
||||
#define RCT2_ADDRESS_SELECTED_TERRAIN_SURFACE 0x009E2E25
|
||||
|
||||
#define RCT2_ADDRESS_PARK_ENTRANCE_GHOST_X 0x009E32CC
|
||||
#define RCT2_ADDRESS_PARK_ENTRANCE_GHOST_Y 0x009E32CE
|
||||
#define RCT2_ADDRESS_PARK_ENTRANCE_GHOST_DIRECTION 0x009E32D1
|
||||
#define RCT2_ADDRESS_PARK_ENTRANCE_GHOST_EXISTS 0x009E32D2
|
||||
#define RCT2_ADDRESS_PARK_ENTRANCE_GHOST_PRICE 0x009E32D3
|
||||
|
||||
#define RCT2_ADDRESS_G1_ELEMENTS 0x009EBD28
|
||||
|
||||
//Every pixel changed by rain is stored.
|
||||
|
||||
1048
src/windows/map.c
1048
src/windows/map.c
File diff suppressed because it is too large
Load Diff
@@ -53,4 +53,6 @@ void sub_6A6C66(int x, int y, rct_map_element *mapElement, int flags);
|
||||
void sub_6A759F();
|
||||
void sub_6A742F(int rideIndex, int entranceIndex, int x, int y, rct_map_element *mapElement, int direction);
|
||||
|
||||
void footpath_bridge_get_info_from_pos(int screenX, int screenY, int *x, int *y, int *direction, rct_map_element **mapElement);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1419,4 +1419,24 @@ void set_forced_park_rating(int rating){
|
||||
|
||||
int get_forced_park_rating(){
|
||||
return gForcedParkRating;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x00666F9E
|
||||
*/
|
||||
void sub_666F9E()
|
||||
{
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_PARK_ENTRANCE_GHOST_EXISTS, uint8) & (1 << 0)) {
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_PARK_ENTRANCE_GHOST_EXISTS, uint8) &= ~(1 << 0);
|
||||
game_do_command(
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_PARK_ENTRANCE_GHOST_X, uint16),
|
||||
40 | GAME_COMMAND_FLAG_APPLY,
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_PARK_ENTRANCE_GHOST_Y, uint16),
|
||||
RCT2_GLOBAL(0x009E32D0, uint8),
|
||||
GAME_COMMAND_REMOVE_PARK_ENTRANCE,
|
||||
0,
|
||||
0
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,4 +82,6 @@ void game_command_buy_land_rights(int *eax, int *ebx, int *ecx, int *edx, int *e
|
||||
|
||||
void gfx_invalidate_viewport_tile(int x, int y, int z0, int z1);
|
||||
|
||||
void sub_666F9E();
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user