Aaron van Geffen
51873dc0f6
Include Diagnostic.h at unit level
2024-07-09 16:23:31 +02:00
Aaron van Geffen
15ee05dfb0
Rename kNumOrthogonalDirections constant
2024-07-01 17:29:37 +02:00
Gymnasiast
a3a09577be
Fix outdated patrol areas showing up after map shift
2024-05-18 21:10:53 +02:00
Gymnasiast
3bb1f8e18a
Guard more moves with null check
2024-05-18 21:10:53 +02:00
Gymnasiast
dde7a8270a
Only shift ride locations if they are not null
2024-05-18 21:10:53 +02:00
Gymnasiast
308912b8ce
Fix rebase error
2024-05-18 21:10:53 +02:00
Gymnasiast
86f80faca8
Also shift jumping fountains and map animations
2024-05-18 21:10:53 +02:00
Gymnasiast
4f41734dc5
Update for changes on develop
2024-05-18 21:10:53 +02:00
Ted John
1c2bc82456
Fix ShiftMap when x or y is 0 but not both
2024-05-18 21:10:53 +02:00
Ted John
e887662d15
Fix shifting of banner positions
2024-05-18 21:10:53 +02:00
Ted John
58292caf22
Fix code formatting for Map.cpp
2024-05-18 21:10:53 +02:00
Ted John
641d8f70aa
Get the entity tweener outside the loop
2024-05-18 21:10:53 +02:00
Ted John
13c4ee5213
Do not tween entities when shifting them
2024-05-18 21:10:53 +02:00
Ted John
776fa71a4f
Use edge as template for new tiles
2024-05-18 21:10:52 +02:00
Ted John
abc67f09e6
Add ability to shift map
2024-05-18 21:10:52 +02:00
Gymnasiast
4cdaaa9810
Refactor slope flags
2024-05-10 20:16:07 +02:00
Aaron van Geffen
ca6f142a97
Remove Config.h include from many places
2024-05-08 22:29:32 +02:00
Michał Janiszewski
a088f7615b
Fix #21748 : TileElement out of bounds ( #21749 )
...
* Fix #21748 : TileElement out of bounds
This fixes crashes observed and allows the park to load. The park is
overlarge and breaks some assumptions we have in our code.
* Use ternaries for checking conditions
2024-05-02 18:14:22 +02:00
Michał Janiszewski
7b12667ddb
Reduce <algorithm> include ( #21947 )
2024-05-01 13:47:27 +02:00
Karsten Van Fossan
137099a429
Close #18305 : Move Translate3DTo2DWithZ() from Map.h into Viewport.h
...
Translate3DTo2DWithZ move to Viewport.h as suggested by ducanspumpkin and update references. Remove redundant function Translate3Dto2D.
2024-04-21 01:18:11 +02:00
Gymnasiast
c158854a7f
Move Park into namespace, add other park-related things to struct
2024-04-04 18:14:27 +02:00
Claudio Tiecher
ffb8b4d44b
Part of #21421 : Refactor MAXIMUM_MAP_SIZE_TECHNICAL
2024-03-25 16:17:32 +01:00
Jan Kelemen
cb3b2a77e7
Move gWidePathTileLoopPosition and gGrassSceneryTileLoopPosition to GameState_t
2024-03-21 22:50:18 +01:00
Harry Hopkinson
e486606189
Move gPeepSpawns to GameState_t ( #21570 )
2024-03-10 15:16:28 -03:00
ζeh Matt
bdcfa5af8f
Add a function to invalidate viewports pre-transformed position
2024-03-05 10:25:59 +02:00
ζeh Matt
2661cf8772
Refactor out all uses of gCurrentRotation, remove gCurrentRotation
2024-03-05 10:23:28 +02:00
Duncan
4b6ba80a46
Move cheats to struct in GameState_t
2024-03-03 22:44:15 +01:00
Katherine Norton
534ba4f339
Fix #20164 : Grass and Rock terrain objects cannot be de-selected ( #21399 )
2024-03-01 21:33:45 -03:00
Harry Hopkinson
14f0479c94
Refactor constants/macros ( #21483 )
...
* Refactor constants in AudioMixer.h
* Refactor constants in Map.h
* Rename kMinimumLandHeight_BIG to kMinimumLandZ
2024-03-01 20:23:29 +00:00
Gymnasiast
53b68f23fa
Move _tileElements to GameState_t
2024-02-27 16:34:26 +01:00
Harry Hopkinson
d8864e567c
Close #21379 : Move map base z to constant
2024-02-20 11:49:02 +01:00
Harry-Hopkinson
b755c873e5
Move gMapSize to GameState_t
2024-02-12 21:32:08 +00:00
Harry Hopkinson
a55da09e1c
Move gMapBaseZ to GameState_t ( #21370 )
...
* Move gMapBaseZ to GameState_t
* Fix fomatting
2024-02-11 21:40:32 +00:00
Michael Steenbeek
0e5c82e2d4
Close #18632 : Display land ownership on the water ( #21150 )
...
Co-authored-by: pfroud <pfroud@users.noreply.github.com >
2024-01-12 07:14:11 +00:00
James103
1d8dc111f1
Replace 2023 with 2024 in copyright headers ( #21139 )
...
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
ζeh Matt
45afc1f67b
Properly name setter/getter for edge object index
2023-08-26 21:01:27 +03:00
ζeh Matt
ae3c1037ad
Properly name what the getter/setter for surface object index is
2023-08-26 20:50:06 +03:00
Aaron van Geffen
f9d8c5923d
Replace surface corner hex values with named constants
2023-06-24 01:48:25 +02:00
ζeh Matt
4c78c8e512
Remove pointless masking
2023-05-06 18:25:27 +03:00
ζeh Matt
cc1eee5bee
Fix #20134 : Don't update grass length outside of the actual map
2023-05-06 18:25:27 +03:00
ζeh Matt
1a0afab6c6
Remove redundant ToCoordsXY
2023-04-05 23:18:12 +03:00
ζeh Matt
0c3c2ebcd2
Refactor MapGetSurfaceElementAt to accept TileCoordsXY
2023-04-05 23:13:47 +03:00
Kevin Strehl
1174063c27
Improve check whether path is connected ( #19788 )
2023-04-01 06:44:22 +00:00
Duncan
b56748bc82
ObjectEntry Cleanup. FootpathItem, SceneryGroup, Water, LargeScenery ( #19385 )
...
* Move footpathitem entry into new getter
* Move scenery group entry into new getter
* Move water entry into new getter
* Move large scenery entry into new getter
* Remove unused header includes
* Fix compile issue
* Include missing header from vcxproj
2023-02-15 21:35:16 +00:00
Duncan
d811c9a9ba
Add Object Entry Manager ( #19332 )
...
* Add object entry manager
Port over wall and banner
* Port over small scenery to ObjectEntryManager
Clang format files
Actually make things safe
Fix build
2023-02-12 20:43:11 +00:00
Duncan
ead13c44b8
Split off LargeSceneryEntry ( #19277 )
2023-01-26 18:44:42 +00:00
Duncan
d51b4d3191
Split off SmallSceneryEntry into dedicated file ( #19115 )
...
* Split off small scenery entry to new file
* Move flags to new file
2023-01-25 19:25:33 +00:00
Gymnasiast
3dd895abf7
Rename pad_ to Pad
2023-01-21 16:39:35 +01:00
Gymnasiast
fa7dd95321
Rename remaining snake in (RCT12)TileElement fields
2023-01-21 16:37:11 +01:00
Duncan
7d08372c80
Remove snake_case from Class names OpenRCT2/Ride*-S* ( #19232 )
...
* Remove snake_case from Class names OpenRCT2/Ride*-S*
* Clang format
2023-01-20 20:58:55 +00:00