1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00
Commit Graph

336 Commits

Author SHA1 Message Date
Tom Lankhorst
027c09553b Reformat code with clang-format 8.0. 2019-11-04 15:11:06 +01:00
Gymnasiast
f1ad9c4ec8 Fix doorsound of legacy object 2019-08-18 11:59:56 +02:00
duncanspumpkin
1ee2063cef Partial fix of #9533. Door sounds not playing
Will now look for correct field. But many json objects do not have this
field set correctly.
2019-08-18 09:34:34 +01:00
Ted John
1a6e5b5548 Fix #9680: invalid-read in ride_entry_get_supported_track_pieces (#9681) 2019-08-03 19:55:24 +02:00
Duncan
ab5f5b20cd Use enum class for RCT2_SOUND (#9618)
* Use enum class for RCT2_SOUND

* Fix formatting. Fix mistaken declaration.

* Change name of enum to SoundId

* Fix clang format
2019-07-22 19:02:45 +01:00
Ferdinand Thiessen
7b317e312c Fix Werror=maybe-uninitialized issue of struct, found by gcc 9.1.1. (#9578) 2019-07-16 10:20:15 +02:00
Michael Steenbeek
42a1a8704d Use empty() for vectors; clean up bool comparisons (#9118) 2019-04-20 20:39:47 +02:00
Gymnasiast
aa21f0fb1d Prepare for food/drink stall recolouration 2019-03-19 22:55:28 +01:00
Gymnasiast
79318997bc Remove old code for MEDIENTR 2019-03-19 22:21:06 +01:00
Gymnasiast
59c74ead94 Add fallback for legacy objects 2019-03-19 21:20:31 +01:00
Gymnasiast
4f8548dfea Allow different default colours per stall 2019-03-19 21:20:31 +01:00
Michael Steenbeek
68aa5122fa Fix #6006: Objects higher than 6 metres are considered trees 2019-03-18 22:56:14 +01:00
Aaron van Geffen
2af13904c5 Update copyright notices for 2019. (#8903) 2019-03-17 07:16:15 +00:00
Michael Steenbeek
6884eac24c Turn railing support type into enum class 2019-03-16 14:21:44 +01:00
Michael Steenbeek
1c0877fc6c Fix missed occurrence of SCROLLING_MODE_NONE 2019-03-16 14:20:03 +01:00
Michael Steenbeek
602821a389 Split path surface objects into paths and queues 2019-03-16 12:37:32 +01:00
Michael Steenbeek
18ac3b02b1 Fix #8524: Do not show RCT1 land edges when CSG1 is not loaded (#8845) 2019-03-12 09:23:17 +01:00
Ted John
cce979f96b Remove logic for required objects (#8718)
This allows TARMAC to be removed when `remove_unused_objects` is called.
2019-02-19 11:55:43 +00:00
Michael Steenbeek
2a4215a30f Create constant for SCROLLING_MODE_NONE 2019-02-14 22:41:48 +01:00
Michał Janiszewski
70ef8151fc Fix types passed to printf-like functions 2019-02-10 00:04:52 +01:00
Ted John
27f70e3656 Get basic object downloading working 2019-02-07 21:58:34 +00:00
Michael Steenbeek
4e9d2ce764 Split footpath object into two internally 2019-01-20 21:38:38 +01:00
Gymnasiast
d000457fb5 Rename more occurrences to railingEntry 2019-01-20 17:23:27 +01:00
Gymnasiast
2f0b6a9652 Rename FOOTPATH_ENTRY_FLAG_HAS_PATH_BASE_SPRITE 2019-01-20 17:23:27 +01:00
Michał Janiszewski
8a70b29f64 Fix GCC's warning regarding enum vs non-enum values being compared (#8551) 2019-01-04 21:29:44 +01:00
Michał Janiszewski
635e46af83 Plug memory leak in ObjectFactory::CreateObjectFromZipFile 2019-01-02 19:57:41 +01:00
ζeh Matt
7d19a5bc77 Refactor memcpy to std::memcpy and memset to std::memset (#8408) 2018-12-15 22:23:31 +01:00
Ted John
2da8e18200 Read the canGrow flag from surface objects 2018-12-11 23:00:59 +00:00
Michał Janiszewski
23dc14b286 Improve checks for object files (#8417) 2018-12-11 19:35:27 +01:00
Ted John
7c3401603d Change mallocs to new[] 2018-12-10 21:14:07 +00:00
Ted John
e13d6da81f Prevent possible stack overflow if zoom offset is 0 2018-12-10 19:54:54 +00:00
Ted John
85b443fc15 Fix #8411: Save game failed!
Do not try to pack our new object types (stations and surfaces) into saved games.
2018-12-10 15:14:50 +00:00
Ted John
cefa4c3935 Fix #8410: Grass is broken
Add zoom images to the very end of the image table so the offsets of the images are not changed.
2018-12-10 11:57:50 +00:00
Ted John
ef57f1a403 Fix zoomed out images 2018-12-09 23:30:40 +00:00
Ted John
06f203a7e7 Implement surfaces, edges and stations as objects 2018-12-09 23:30:40 +00:00
Michał Janiszewski
cec86469f0 Improve imported object handling (#8372)
Reject and report invalid objects rather than triggering assert.
2018-12-05 23:12:22 +01:00
Michał Janiszewski
f488c4bf35 Forward-declare json_t and reduce Json.hpp inclusion (#8368) 2018-12-05 20:31:32 +01:00
Hielke Morsink
354d973a48 Use std::size instead of Util::CountOf 2018-11-23 21:59:08 +01:00
LRFLEW
c41f862920 Fix some memory leaks 2018-10-04 09:42:22 +02:00
Hielke Morsink
6e62186d01 Fix #8034: screenshot command outputs broken sprites (#8041)
Check for no-graphics instead of headless when creating objects.
2018-10-02 20:09:08 +01:00
Matt
837c0a9e7f Use std::unique_ptr for ObjectManager and ObjectRepository 2018-08-31 07:18:49 +02:00
Matt
04928d4b84 Refactor reference over std::shared_ptr. 2018-08-31 07:18:48 +02:00
Michael Steenbeek
5cd4057c76 Remove remnants of STEX support 2018-08-29 23:29:45 +02:00
Linus Unnebäck
fd07be587a Remove Math::Clamp in favour of std::clamp 2018-08-12 16:47:12 +01:00
Gymnasiast
0ba233efa4 Fix formatting 2018-07-31 22:27:00 +02:00
Gymnasiast
edaebd5163 Protect against Sources being null 2018-07-30 22:01:04 +02:00
Gymnasiast
8ff6831c57 Fix rebase errors 2018-07-30 21:52:45 +02:00
Gymnasiast
c879bb5708 Modify SetSourceGames signature 2018-07-30 21:41:45 +02:00
Gymnasiast
b257619418 Use vector for source games 2018-07-30 21:41:12 +02:00
Michael Steenbeek
2a64ec7aff Use sourceGame parameter in JSON files instead of originalId 2018-07-30 21:39:27 +02:00