Michael Steenbeek
bb483b0c5f
Replace direct access to large scenery colour with helper functions
2017-11-17 22:54:54 +01:00
Michael Steenbeek
3bd68947b9
Create functions for getting large scenery type and sequence
2017-11-17 12:56:08 +01:00
Michael Steenbeek
f448d16707
Add methods for getting and setting track element type
2017-11-17 12:54:47 +01:00
Michael Steenbeek
ab3f42f1f9
Add getters and setters for ride index and maze entry
2017-11-17 12:54:47 +01:00
Michael Steenbeek
af845beb61
Replace mapElement with tileElement
2017-10-31 19:59:06 +01:00
Michael Steenbeek
ce8d9cc71b
Rename map_element to tile_element
2017-10-31 19:59:06 +01:00
Michał Janiszewski
90a14205c8
Compile track_data.c as C++
2017-10-25 23:53:47 +02:00
Michał Janiszewski
8fd2266bda
Refactor includes ( #6512 )
...
* Refactor Intent.h inclusion
* Use forward declaration of ITcpSocket
* Remove unused include
* Forward declare rct_ride_entry
* Remove unused headers
* Forward-declare rct_drawpixelinfo
* Remove unused headers
* Lower header include from header to source file
* Reduce included headers
* Reduce includes
2017-10-19 10:01:05 +02:00
Michael Steenbeek
bb01699b7d
Compile track.c as C++
2017-10-17 13:51:47 +02:00
Tomas Dittmann
e393ff1f22
Stop using (void*)-1 for invalid pointers
2017-10-15 15:53:16 +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
055ecccf36
Clean up more track flags
2017-10-04 17:14:53 +02:00
Marijn van der Werf
09517caa88
Fix #6300 : Saving track triggers assertion
2017-09-25 22:14:50 +02:00
Marijn van der Werf
162eea0924
[fixup] Cast pointer
2017-09-24 22:41:49 +02:00
Marijn van der Werf
b7164c5eac
Rename intent extra keys
2017-09-24 22:41:49 +02:00
Marijn van der Werf
d18e59ff17
Move loadsave dialog
2017-09-24 22:41:49 +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
Michael Steenbeek
ddb557a0fe
Fix TD4 vehicle colour import, move track_design to C++
2017-09-01 13:38:21 +02:00
Michał Janiszewski
754666d4e9
Remove superfluous check from track_design_save.c
2017-08-01 08:45:07 +02:00
Michał Janiszewski
12067cb558
Fix #4697 : Ensure track designs are saved and read properly
...
Previous code only set one byte as an end marker, but read and compared
to 4 bytes, which could cause track design to become malformed.
2017-08-01 07:36:19 +02:00
rwjuk
f6aef817e1
Fix #5943 : Track preview for mazes not drawn when paused
2017-07-28 10:34:30 +02:00
Gymnasiast
2b540b9da1
Remove direct access to small scenery's colour_1 and _2 fields
2017-07-27 21:37:34 +02: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
41b5e8bbca
Remove direct usage of map element track sequence field
2017-07-27 16:19:01 +02:00
Gymnasiast
274abcb071
Clean up track designs a bit
2017-07-25 11:04:40 +02:00
Gymnasiast
7b8248cca7
Change ride->exit into an rct_xy8, cleanup
2017-07-17 20:41:03 +02:00
Gymnasiast
c12113475b
Turn ride->entrances into an rct_xy8
2017-07-17 19:27:38 +02:00
Gymnasiast
8b6ecc76d2
Clean up boosters
2017-06-20 14:24:10 +02:00
Gymnasiast
ed905f3c68
Add define for number of colour schemes, correct several cases of max stations per ride
2017-06-17 14:31:48 +02:00
Ted John
c8e4e6dae1
Remove usages of MAX_PATH
2017-06-11 15:42:06 +01: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
Richard Jenkins
5c28e66aa2
Name sub_6D01B3()
2017-06-06 00:47:07 +01: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
wolfreak99
3d50ab56c8
Support mouse dragging when selecting ride design scenery
...
Define nearby scenery distance, support mouse dragging when selecting/deselecting ride design scenery
2017-05-29 22:34:33 +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
Craig Craig
9dd820e2e7
Spelling fixes
2017-05-08 08:30:50 +02:00
Duncan
1654ba4fe4
Merge pull request #5236 from duncanspumpkin/refactor
...
Refactor fence to wall
2017-02-28 06:56:06 +00:00
Michał Janiszewski
7f48df20ec
Refactor input
2017-02-27 20:20:41 +01:00
duncanspumpkin
7691dc3c10
Use functions to set and get secondary colour
2017-02-25 09:19:31 +00:00
duncanspumpkin
810bf301f3
Rename map element fence to wall
2017-02-20 21:10:49 +00:00
duncanspumpkin
f54c71b61c
Rename functions to wall. Refactor game commands
2017-02-20 21:02:19 +00:00
duncanspumpkin
133266deb0
Label fence offsets
2017-02-19 11:03:05 +00:00
Ted John
fb2c835d52
Include new config header
2017-02-18 15:45:10 +00:00
Ted John
fbe0e2504a
Do not use RWops for saving track designs
2017-02-11 12:40:38 +00:00
Gymnasiast
6c21b469d4
Correctly save booster speed, fixes #5032
2017-02-10 00:32:41 +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
baed215984
Add helper: ride_has_ratings
...
#5066
2017-01-13 18:14:38 +00:00
Michał Janiszewski
ecf77e3609
Remove redundant declarations
2017-01-13 10:02:17 +01:00