Duncan
eba42a9584
Introduce Limits headers. ( #15329 )
...
* Move RCT12 limits to seperate file and namespace
* Remove prefix from constants
* Add rct1 limits file
* Rename constants to remove prefix
* Add RCT2 limits file
* Remove RCT2 prefix from constants
* Move constant to correct header
* Fix rebase mistakes
* Drop prefix
2021-11-27 16:20:05 +00:00
ζeh Matt
9f23449ffb
Move Staff/Guest/Peep to entity
2021-11-26 18:26:19 +02:00
Duncan
275d565e52
Start splitting up ride.h ( #16011 )
...
* Start splitting up ride.h
* Use cstdint instead of common.h
2021-11-26 15:03:14 +00:00
duncanspumpkin
6d28b94c05
Revert style change
2021-11-21 22:43:22 +01:00
Gymnasiast
efd9cc420b
Remove loading of JSON legacy footpaths
2021-11-21 22:43:22 +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
ζeh Matt
6f28f3e516
Backport ImageTable changes
...
Co-authored-by: Ted John <ted@brambles.org >
2021-10-20 16:50:38 +03:00
Hielke Morsink
9dd20ec619
Improve array formatting
...
For most of these cases, adding a trailing comma to the array block makes clang-format put each item on a new line, and clang-format exception blocks could be reduced where clang-format does not handle them properly.
2021-10-17 18:21:45 +02:00
Silent
daef940bc8
Fix LargeSceneryObject and WaterObject not tearing down the image ID
2021-10-10 00:09:36 +02:00
Hielke Morsink
1d62a902e7
Make scenery_small_entry_has_flag a member function ( #15509 )
2021-10-01 16:50:05 -03:00
Duncan
50118ae039
Move function for NSF use
2021-09-27 22:54:41 +02:00
Hielke Morsink
77141f57b0
Merge pull request #15416 from Broxzier/refactor/unnecessary-else
...
Remove unnecessary else blocks
2021-09-17 14:56:30 +02:00
Hielke Morsink
fc8e0cf9d7
A couple more nullopt returns ( #15422 )
2021-09-16 23:05:50 +02:00
Hielke Morsink
4b4b3333d6
Remove unnecessary else blocks
2021-09-16 18:31:12 +02:00
Gymnasiast
51a7c2ad44
Fix log_warning spam for OBJECT_ENTRY_INDEX_NULL
2021-09-15 22:42:32 +02:00
Gymnasiast
ecaf361743
Revert porting errors
2021-09-15 18:27:15 +02:00
Gymnasiast
adce8c998e
Return early in RepositoryItemToObject()
2021-09-15 17:58:42 +02:00
Gymnasiast
6a7084aa4d
Fix formatting and TODO note
2021-09-15 17:54:39 +02:00
Gymnasiast
bdab3219cb
Modify object loading for JSON-only objects
2021-09-15 11:28:39 +02:00
Michael Steenbeek
37821ce25e
Merge pull request #15336 from Gymnasiast/refactor/more-paths
...
Prepare footpath handling for surfaces and railings (from NSF)
2021-09-15 10:58:01 +02:00
Michał Janiszewski
1a35cdafb3
Add limits include to Object.h ( #15415 )
...
PPA builds seem to complain about this
2021-09-15 08:25:55 +02:00
ζeh Matt
59a6c34db4
Make use of std::optional strict
2021-09-13 20:02:32 +03:00
IntelOrca
4f319d6ed4
Prepare footpath handling for surfaces and railings
2021-09-12 17:52:01 +02:00
ζeh Matt
65a484105e
Merge pull request #15395 from ZehMatt/refactor/common-numerics
...
Remove numerics from common.h and use it as needed
2021-09-11 14:27:07 -07:00
ζeh Matt
b733e97bfa
Remove numerics from common.h and use it as needed
2021-09-11 20:21:08 +03:00
ζeh Matt
2daa356fbf
Move ZipStream into new header
2021-09-11 19:06:17 +03:00
ζeh Matt
50d7b8bb1c
Remove unused function get_loaded_object_entry
2021-09-11 16:50:30 +03:00
ζeh Matt
38ec042a52
Refactor object_entry_get_chunk wrapper
2021-09-11 16:50:30 +03:00
ζeh Matt
c416c7ca27
Remove unused function get_loaded_object_chunk
2021-09-11 16:50:30 +03:00
Gymnasiast
4cc717ccdb
Rework path surface and railings descriptor handling
2021-09-05 19:09:09 +02:00
Gymnasiast
2282f24404
Rename path surface and railings descriptors
2021-09-05 19:09:09 +02:00
Michael Steenbeek
7b2554cdae
Addendum to #15340 : guard size of object_entry_group_counts
2021-09-05 16:06:34 +02:00
ζeh Matt
5868071fbc
Merge pull request #15335 from ZehMatt/refactor/object-load
...
Fix ownership of loaded object data
2021-09-04 09:13:45 -07:00
Hielke Morsink
fd2a572f9a
Fix #15319 : Clicking on Object Selection Cheat Freezes the Game
...
This fixes it by adding limits for the missing path types.
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com >
2021-09-04 01:09:09 +02:00
ζeh Matt
6186b29675
Apply review suggestion
2021-09-03 18:03:19 +03:00
ζeh Matt
cf0425d953
Fix building
2021-09-03 14:45:48 +03:00
ζeh Matt
a118b16912
Remove unused functions
2021-09-03 14:45:47 +03:00
ζeh Matt
976c614881
Reduce duplicate code
2021-09-03 14:45:47 +03:00
ζeh Matt
a44f3017dc
Move the log print and remove optional parameter
2021-09-03 14:45:47 +03:00
ζeh Matt
1f4f0c015c
Fix ownership of loaded object data
2021-09-03 14:45:47 +03:00
Ted John
3c451a4af4
Use music objects instead of IDs
2021-09-01 10:26:23 +02:00
Gymnasiast
bcba227430
Add footpath surface and railings objects from NSF
2021-08-29 17:07:38 +02:00
Gymnasiast
b6b792f874
Add GetImage() method to rct_footpath_entry
2021-08-29 16:22:51 +02:00
Hielke Morsink
956e77f4c3
Use [[nodiscard]] for allocator and RAII functions ( #15244 )
2021-08-23 20:09:43 +02:00
Duncan
69f0020a62
Fix #8601 : Revert fix to TT’s base blocks, for support blocker usage
2021-07-31 14:10:00 +02:00
Basssiiie
15423acf4a
Move ToonTowner mine roofs to mine theme instead of pirate theme
2021-07-31 11:00:41 +02:00
ZehMatt
e520e4f991
Use EnumMap for RideObject lookup tables
2021-07-29 17:07:48 +03:00
Michael Steenbeek
71ff9bf6d6
Allow loading images from .pob files ( #15122 )
2021-07-28 21:25:51 +02:00
Gymnasiast
bb682ca09d
Hide brown base on flat rides if "no platform" station style is selected
2021-07-28 11:22:44 +02:00
Michael Steenbeek
1031be9078
Fix #14751 : Height limitation also affects trees
2021-06-08 22:02:17 +02:00