Michael Steenbeek
bb01699b7d
Compile track.c as C++
2017-10-17 13:51:47 +02:00
Michael Steenbeek
7f9c25a7a9
Use constant for LOCATION_NULL, split off location stuff to Location.h
2017-10-13 22:23:07 +02:00
Michael Steenbeek
3a9dc3f491
Ensure that get_ride_entry returns NULL on invalid ride entries
2017-10-12 21:07:35 +02:00
Michael Steenbeek
31e1ad43a8
Compile finance.c as C++, clean up
2017-10-07 16:28:35 +02:00
Michael Steenbeek
4224193d68
Clean up ride groups
2017-10-06 10:29:24 +02:00
Michael Steenbeek
055ecccf36
Clean up more track flags
2017-10-04 17:14:53 +02:00
Marijn van der Werf
ac910a5979
Move Error, Campaign and Ride Demolition windows
2017-09-24 22:41:49 +02:00
Gymnasiast
a28509e24c
Split Ride and rct2_ride
2017-09-12 11:16:57 +02:00
Tomas Dittmann
7d8695394c
Add guards for nullptr and (-1) pointer accesses
2017-08-22 10:20:59 +02:00
ZehMatt
3313590784
Fix #6052 : Unable to place entrance/exit on certain ride types.
2017-07-29 10:03:32 +01:00
Gymnasiast
db438a27b7
Use map_element_get_direction in more places, create map_element_get_direction_with_offset()
2017-07-27 21:23:26 +02:00
Michael Steenbeek
46de90df86
Create map_get_water_height()
2017-07-27 17:15:56 +02:00
Michael Steenbeek
41b5e8bbca
Remove direct usage of map element track sequence field
2017-07-27 16:19:01 +02:00
Gymnasiast
894d010439
Name map element track sequence flags and use them
2017-07-26 14:41:04 +02:00
Michael Steenbeek
70f1e94ce9
Fix #5946 : assertion hit when building new ride
2017-07-19 13:41:24 +02:00
Gymnasiast
f5923dbe99
Create find_first_non_null_station_index()
2017-07-19 08:52:33 +02:00
Michael Steenbeek
7a4e7e17a1
Fix incorrect terminology
2017-07-18 18:07:43 +02:00
Gymnasiast
50b993386a
Change station_starts to an rct_xy8
2017-07-18 13:12:34 +02:00
Michael Steenbeek
ec55224f38
Change ride->overallview to an rct_xy8
2017-07-18 12:22:39 +02:00
Gymnasiast
fea2c66036
Name remaining TRACK_ELEM_FLAGs
2017-06-30 14:37:26 +02:00
Gymnasiast
4e87ad6ac3
Properly check 'Finish 5 roller coasters' criteria, fixes #597
...
This fixes the following things:
- The objective was not available when using money (despite it being used on such scenarios in RCT1)
- The scenario editor set the 'partially finished flag' on every single ride
- The scenario editor did not check if there were five finished roller coasters
- When checking the goal, there was no check if the ride was a roller coaster
- When checking the goal, there was no check if the ride was one of the roller coasters to be completed
2017-06-29 17:32:12 +02:00
ZehM4tt
0a633647e4
Fix ghost scenery removing objects with "Disable Clearance check" enabled.
...
Fix footpath_remove ignoring the ghost flag removing the wrong path.
Replaced some constants with the known flags.
2017-06-26 14:58:07 +02:00
Michael Steenbeek
8333266ca5
Name several ride construction flags, clean up ride_data.c, fix "mini coaster" boosters
2017-06-25 12:14:39 +02:00
Gymnasiast
8b6ecc76d2
Clean up boosters
2017-06-20 14:24:10 +02:00
Michael Steenbeek
96a7a8ab50
Sort rides into ride groups when in select-by-track-type mode
...
* Add ride groups
* Convert ride groups to C++
* Fix linking and crashes in Xcode
* Comment out .field syntax to make Visual Studio happy
* Fix alignment, fix changelog, cleanup
* Properly save ride group index in the ride object repository and bump its version
* Fix fallback behaviour when the ride entry is not available or not invented
* Fix include
* Rename RideGroup to RideGroupManager, add const, cleanup
* Break after finding matching ride group
2017-06-14 13:31:27 +02:00
Michał Janiszewski
61d38511bc
Expand tabs to spaces
...
This commit expands tabs to spaces (ts=4) in all the files under src/
and test/.
Until now we had two wildly different code styles with C using tabs and
new C++ using spaces. It is painful to maintain as none of the commonly
used tools support this kind of setup and in reality is needless, as we
can simply convert all the sources to spaces and have opened PRs do the
same, where needed.
Additionally, trailing whitespace has been removed.
2017-06-06 23:46:14 +02:00
Michał Janiszewski
79d76759bb
Fix #5516 : Update copyrights for 2017
...
Not all files were necessarily _changed_, but all were touched, see
https://github.com/OpenRCT2/OpenRCT2/pull/4932
2017-06-01 21:55:10 +02:00
Michael Steenbeek
e725672d23
Clean up alternative track pieces and types, remove remnants of researched track pieces
2017-05-16 19:11:51 +02:00
Michael Steenbeek
a53b01d5b9
Remove magic numbers and Americanisms
2017-05-08 23:54:38 +02:00
Marijn van der Werf
31e8b510ec
Use constants for maze construction
2017-05-03 16:09:21 +02:00
Michał Janiszewski
f58233912d
Prevent execution of invalid command in track_place
2017-04-29 20:56:32 +02:00
Duncan
1654ba4fe4
Merge pull request #5236 from duncanspumpkin/refactor
...
Refactor fence to wall
2017-02-28 06:56:06 +00:00
duncanspumpkin
f54c71b61c
Rename functions to wall. Refactor game commands
2017-02-20 21:02:19 +00:00
Ted John
fb2c835d52
Include new config header
2017-02-18 15:45:10 +00:00
duncanspumpkin
50e1c831a6
Refactor fence door animation
2017-02-18 08:26:33 +00:00
Gymnasiast
8f81485c46
Correct spelling of 'block brakes', use constant
2017-01-25 02:33:17 +01:00
Broxzier
2235390ce2
Fix 5079 don't remove walls when building stalls and footpaths
2017-01-16 14:28:16 +01:00
Broxzier
60603ae10a
Use types from common.h
2017-01-14 12:37:31 +01:00
Michał Janiszewski
d88635307f
Merge pull request #5062 from janisozaur/cmake-warnings
...
More warnings for CMake
2017-01-13 19:46:30 +01:00
Ted John
053f8a70bf
Name flag: RIDE_TYPE_FLAG_18
2017-01-13 13:13:24 +00:00
Ted John
bdc5078003
Name flag: RIDE_TYPE_FLAG_6
2017-01-13 13:04:11 +00:00
Michał Janiszewski
cf670deb10
Add -Wshadow to CMakeLists and fix offenders
2017-01-13 10:02:17 +01:00
Michael Steenbeek
2a435bfdae
Use constants for block brakes and some other elements
2017-01-13 09:49:29 +01:00
Ted John
b79af110c7
Fix more warnings
2017-01-12 18:02:28 +00:00
Ted John
25bc798ff8
Move contents of src into project sub directory
2017-01-04 17:44:12 +00:00