1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00
Commit Graph

328 Commits

Author SHA1 Message Date
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
Ted John
ec0d35bac7 Add new source field to ORI struct 2018-07-30 21:32:07 +02:00
Michael Steenbeek
5ce76e1603 Attempt at showing secondary source game 2018-07-30 21:28:55 +02:00
Michael Steenbeek
7f1960d375 Remove old source game tables 2018-07-30 21:22:32 +02:00
Hielke Morsink
0b03464186 Replace 0 and NULL with nullptr (#7827) 2018-07-25 22:49:20 +02:00
clang-format
d787872cbe Indent preprocessor directives 2018-07-23 16:00:23 +02:00
clang-format
b02dfdbc93 Binpack function arguments together
Previously when the arguments of a function wouldn't fit on a single line, clang-format would put each argument on its own line instead. By enabling the binpack parameter setting, it tried to fit as many on one line as possible instead.

Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2018-07-23 16:00:22 +02:00
clang-format
95ce592579 Enforce not breaking before assignments and function names
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2018-07-23 16:00:19 +02:00
Hielke Morsink
9bfa8bdbe8 Apply format on new/updated code before rebase 2018-07-23 16:00:17 +02:00