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
Claudio Tiecher
a94e6c54d8
Part of #21421 : replace define with constexpr ( #21679 )
2024-04-01 07:00:32 -03:00
Claudio Tiecher
4d99fec550
Part of #21421 : apply more clang-formatting
2024-03-25 16:56:04 +01:00
Claudio Tiecher
eb4c64abc4
Part of #21421 : improved consistency for var decl
2024-03-25 16:17:32 +01:00
Claudio Tiecher
ffb8b4d44b
Part of #21421 : Refactor MAXIMUM_MAP_SIZE_TECHNICAL
2024-03-25 16:17:32 +01:00
Claudio Tiecher
ef81a6376e
Part of #21421 : Refactor MINIMUM_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
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
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
Aaron van Geffen
d425e0a8bb
Remove const qualifier from constexpr statements
2023-06-24 11:45:26 +02:00
Aaron van Geffen
f9d8c5923d
Replace surface corner hex values with named constants
2023-06-24 01:48:25 +02:00
Michał Janiszewski
784237202b
Raise water and land height limits to 254 units/182m/600ft ( #19988 )
...
* Raise water and land height limits to 254 units/182m/600ft
New parks load correctly in older versions, but cannot be altered there.
Fixes #17739
* Add changelog, bump network and park file version
2023-04-21 12:58:39 +02:00
ζeh Matt
0c3c2ebcd2
Refactor MapGetSurfaceElementAt to accept TileCoordsXY
2023-04-05 23:13:47 +03:00
Karst
adf1c9a1a5
Decrease minimum map size from 13 to 3
...
As requested by DKMP.
2023-03-18 21:27:19 +01:00
Duncan
23b6d1840e
Rename classes with snakes OpenRCT2/G*-M*
2023-01-19 15:13:23 +00:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Duncan
406b73d904
Remove final snakes from map and world ( #18304 )
2022-10-12 09:14:45 -03:00
Duncan
7dd8989e70
Next chunk of World/Map.h snakes ( #18296 )
...
* Next chunk of World/Map.h snakes
* Apply clang-format
2022-10-12 06:35:20 +01:00
Duncan
67bbc8560d
Code style: Remove snakes from everything world apart from Map.h ( #18273 )
...
* Remove remaining snakes from world (outside of map)
* Initial few desnaking of Map.h
2022-10-11 19:39:24 +01:00
duncanspumpkin
3e8dc1b2ac
Remove snakes from the foopaths
2022-10-04 20:08:14 +01:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
Rik Smeets
efa7a23773
Fix #18140 & #18143 : Invalid read in Staff
...
The tile element should be determined the same way as is done when checking if the footpath is blocked by a vehicle.
Also added some extra safety checks and made the code a bit more efficient / reusable. For example: when the staff member is not a mechanic, the tile element doesn't have to determined.
2022-09-30 18:00:59 +00:00
Rik Smeets
67856292a4
Fix #17889 : Peeps don't stop at level railway crossings if approached from downhill
...
If peeps approached a railway crossing from downhill, they would not stop for a passing train. This was because the exact destination z is determined too late. To always get the correct path, get the first footpath at the previous z index, or one step above.
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2022-09-28 16:44:05 +00:00
Gymnasiast
f0777e5418
Introduce constant for construction rights clearance
2022-07-28 21:25:42 +02:00
Hielke Morsink
9c595ccaa7
Replace 16 with new constant WATER_HEIGHT_STEP
2022-07-01 00:09:27 +02:00
Ted John
3d2420c86c
More code review changes
2022-02-14 23:15:59 +00:00
Ted John
454bfb0a8f
Refactor map size to allow for rectangle maps
2022-02-14 23:15:59 +00:00
ζeh Matt
a2470c0573
Rename ride_id_t to RideId
2022-02-12 18:11:18 +02:00
Duncan
5157b57a15
OpenRCT2 Limits ( #16088 )
...
* Move over max rides to limits file
* Move max stations to limits file
* Move over max inversions, golf holes, helices, custhistsize
* Move over max trains per ride
* Bring over Max cars per train and max circuits per ride
* Port over NumColourSchemes and max vehicle colours
* Fix compilation
* Move over max awards
* Move over max peep spawns and park entrances
* Fix rebase issues
* Remove future work
* Switch style
* Update copyright
2022-02-01 20:59:48 +00:00
Gymnasiast
aa34f0f760
Drop the N postfix
2021-12-11 00:39:39 +01:00
Gymnasiast
91635a5047
Replace SetType and old strong enum with normalised
2021-12-05 13:54:01 +01:00
Ted John
0e57643a68
Refactor TilePointerIndex
2021-11-21 22:43:23 +01:00
IntelOrca
34128dc262
Add new .park save format
...
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com>
Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com>
Co-authored-by: Broxzier <Broxzier@users.noreply.github.com>
2021-11-21 22:43:22 +01:00
Duncan
f84c5616e5
Port over NSF map changes ( #15912 )
2021-11-14 20:58:33 +00:00
ζeh Matt
7a30169c28
Refactor out construction clearance into a new compilation unit
2021-10-20 22:21:54 +03:00
ζeh Matt
a3b0c9ac81
Add overload for map_get_first_element_at to accept TileCoordsXY
2021-09-07 22:36:15 +03:00
Hielke Morsink
956e77f4c3
Use [[nodiscard]] for allocator and RAII functions ( #15244 )
2021-08-23 20:09:43 +02:00
Hielke Morsink
15d3a4a9da
Update more include guards ( #15254 )
2021-08-21 12:55:28 +02:00
Duncan
940cab87d3
Map size refactors from NSF ( #15112 )
...
* Support large map sizes
* Fix top spin painting
* Fix crooked house
* Increase bb size
* Decrease limit back
* Clang format
* Remove asserts and apply review comments
* Fix rebase mistake
Co-authored-by: Ted John <ted@brambles.org>
2021-08-16 20:51:16 +01:00
Michael Steenbeek
864de57877
Fix #14667 : Unpurchaseable land tiles in Extreme Hawaiian Island
2021-08-01 17:26:43 +02:00
Michael Steenbeek
474e00d48b
Remove map_can_construct[_with_clear]_at() and gMapGroundFlags
2021-06-13 10:13:13 +02:00
Michael Steenbeek
1031be9078
Fix #14751 : Height limitation also affects trees
2021-06-08 22:02:17 +02:00
duncanspumpkin
b2c0c3e246
Handle reaching tile element limits more gracefully
2021-06-06 08:28:07 +01:00
Ted John
81d7c3f02b
Make tile elements dynamic and resizeable
2021-06-05 21:17:03 +01:00
Ted John
051a09d2b7
Update map tile loop to support large maps.
2021-06-05 21:17:03 +01:00