Matt
52ee9c6896
Use enum class for ExpenditureType
2019-12-22 20:51:55 +01:00
Tom Lankhorst
027c09553b
Reformat code with clang-format 8.0.
2019-11-04 15:11:06 +01:00
Matt
07f401baa2
Use unsigned type for scenario_rand results
2019-10-20 00:21:19 +02:00
Matt
365c7c6f51
Use better variable name
2019-10-20 00:21:19 +02:00
Matt
70d37fe8f9
Fix ducks asserting due to invalid position
2019-10-20 00:21:18 +02:00
Matt
7fa41bb82d
Implement 'Create Ducks' cheat
2019-10-20 00:21:18 +02:00
ζeh Matt
0b95dcd0d0
Fix #8584 : Duck spawn search now uses entire map ( #9743 )
2019-10-02 22:14:56 +02:00
Michael Steenbeek
a11762b11a
Remove old C functions that only call their equivalent
...
* Remove old C functions that only call their equivalent
* fix formatting
2019-09-22 14:12:49 +02:00
Gymnasiast
daa00147d5
Split off RCT12ResearchItem
2019-08-23 22:41:43 +02:00
Michael Steenbeek
4093480f83
Fix #9909 : 'Build 10 roller coasters' objectives do not complete ( #9922 )
2019-08-22 23:08:11 +02:00
duncanspumpkin
f3db7f877a
Refactor tile_element_water_height to take CoordsXY
2019-08-19 20:04:57 +01:00
Gymnasiast
18844f9244
Fix formatting [ci skip]
2019-08-18 14:36:16 +02:00
Gymnasiast
255ce3f62b
Extend tile element size to 16 bytes
2019-08-18 14:03:36 +02:00
Ted John
a094c5b0ce
Create RCT2 version of ride rating calc data ( #9751 )
2019-08-18 12:53:56 +02:00
Ted John
f87b97cda4
Fix formatting
2019-08-09 19:03:59 +01:00
Ted John
6dcedf7f57
Fix #9813 : Crashes on loaded save game
...
Because ride bool array was not passed by reference, game though all rides had no track and reset their type on export.
2019-08-09 18:39:47 +01:00
Ted John
9954f0b725
Add nullptr checks for more instances of get_ride ( #9819 )
2019-08-09 14:20:59 +01:00
Ted John
8022211112
Refactor guest ride consideration
2019-08-04 16:44:17 +01:00
Ted John
a863c7ae50
Remove rest of FOR_ALL_RIDES instances
2019-08-04 16:44:17 +01:00
Ted John
a3fe00f0a3
Refactor ride list to a manager with iterator
2019-08-04 16:43:50 +01:00
Ted John
c3234b1442
Refactor map animations and dynamically create on park load ( #9705 )
2019-08-03 22:18:33 +02:00
Ted John
85543bd1c8
Separate RCT2 and OpenRCT2 banner struct
2019-07-25 22:21:19 +01:00
Ted John
5733d666b3
Do not store park name as a user string
2019-07-21 11:33:15 +02:00
Ted John
6f0298deb3
Refactor ride measurement storage
2019-06-09 11:55:41 +02:00
Nicole
d38fb6a7a2
Fix #8800 : ensure tile_element_height is used correctly ( #9087 )
...
* Changed calls to tile_element_height to tile_element_water_height
* Changes to calls to tile_element_height
* Removed tile element_height, map_get_highest_land_height, and map_get lowest_land_height
3 functions removed due to relocation.
* Added function tile_element_height back to map.cpp
Added tile_element height back to map.cpp. Was unnecessarily deleted.
* Update Map.h
* water_height changes
* Update Scenario.cpp
* Update Scenario.cpp
* Fix 8800: applied clang format
* Removed unnecessary ANDs
2019-04-23 18:26:48 +01:00
Michael Steenbeek
42a1a8704d
Use empty() for vectors; clean up bool comparisons ( #9118 )
2019-04-20 20:39:47 +02:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Matt
3c8480ee26
Remove unused variables and strip unused DEBUG_DESYNC paths.
2019-03-14 13:43:49 +01:00
duncanspumpkin
92cdbfb0a8
Use Is/Set Indestructible
2019-02-27 10:49:48 +00:00
duncanspumpkin
737c308e4e
Use IsGhost() to access ghost state
...
Added set and clear ghost to further prevent direct access to flags
2019-02-25 15:12:35 +00:00
Ted John
c0e4eff9f1
Start copying sprite structures for RCT1 and RCT2
2019-02-20 23:31:14 +00:00
Ted John
4013479094
Refactor marketing to be a single vector
2019-02-20 16:49:02 +00:00
Tom Lankhorst
ec8caa5636
Drop <sstream>
2019-02-01 21:47:47 +01:00
Tom Lankhorst
dfe7f0614c
Consistency
2019-02-01 21:00:19 +01:00
Tom Lankhorst
16691b22ba
Use state struct
2019-02-01 19:29:43 +01:00
Tom Lankhorst
1a81d60609
Expose gScenarioRand, add <algorithm>
2019-02-01 14:48:45 +01:00
Tom Lankhorst
6a42a95495
Refactor random engine
...
Introduce RotateEngine and Rct2Engine, FixedSeedSequence and Rct2Seed.
Adhere respectively to requirements `RandomNumberEngine` and `SeedSequence`.
Can be used with C++11 adaptors and distributions in <random>.
2019-02-01 14:32:04 +01:00
Michael Steenbeek
247e89eb53
Revert duck fix
2019-01-24 10:40:04 +01:00
deurklink
5e39147b76
Fix #8584 : Ducks spawning function doesnt check tiles 0..63 (original bug) ( #8614 )
2019-01-20 13:20:01 +01:00
Lars Toenning
7de115263e
Fix #8377 : Change number of autosaves that are stored ( #8440 )
2019-01-19 14:31:12 +01:00
Ted John
08b02943d3
Use std::string for scenario name, details etc.
2018-12-16 19:01:14 +00:00
Ted John
19a687f2fa
Change gParkEntrance to a vector so we can now have more than 4
2018-12-16 19:00:16 +00: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
06f203a7e7
Implement surfaces, edges and stations as objects
2018-12-09 23:30:40 +00:00
Hielke Morsink
354d973a48
Use std::size instead of Util::CountOf
2018-11-23 21:59:08 +01:00
Michael Steenbeek
fbecfe5a88
Define tile elements in save as RCT12TileElement
2018-11-05 11:55:33 +01:00
Michael Steenbeek
f8add7f62e
Rename rct_tile_element to TileElement
2018-11-01 13:53:50 +01:00
Michael Steenbeek
a3e9c63fc3
Move GetRideIndex to struct methods
2018-09-25 21:57:21 +02:00
Michael Steenbeek
5cd4057c76
Remove remnants of STEX support
2018-08-29 23:29:45 +02:00
Hielke Morsink
c0becabcb8
Fix converting of megapark file when path fails to resolve ( #7904 )
...
This fixes a small regression from #7895 .
2018-08-14 21:45:53 +02:00