Ted John
428724d86c
refactor reset_sprite_spatial_index, integrate gSpriteSpatialIndex
2016-06-03 18:13:00 +01:00
Michał Janiszewski
1508e49a28
Change macro to assert_struct_size
2016-06-03 11:29:50 +02:00
Michał Janiszewski
60630b9ad7
Drop `PACKED` attribute
2016-06-03 10:55:21 +02:00
Michał Janiszewski
df3030e4a9
Provide static_assert for hard-coded struct sizes.
2016-06-03 10:55:21 +02:00
Michał Janiszewski
3907fcd9d2
Explicitly pack structs
2016-06-03 10:55:21 +02:00
Ted John
25ac99e04a
add variable for gS6Info
2016-05-20 23:26:19 +01:00
Ted John
8efe699754
integrate gMapTooltipFormatArgs
2016-05-18 00:02:26 +01:00
Ted John
9ebb7f4931
Merge pull request #3621 from IntelOrca/refactor/common-format-args
2016-05-15 23:47:55 +01:00
Michał Janiszewski
b7f3259779
Guard against crash with synchronised vehicles, fix typo ( #3624 )
2016-05-15 22:49:59 +01:00
Ted John
cbf9a393f1
remove use of get_format_arg
...
Because of strict aliasing, we must use memcpy in some cases.
2016-05-15 22:40:25 +01:00
Ted John
1cc35dfe6e
integrate common format args
2016-05-15 22:03:53 +01:00
Yaroslav Tretyakov
a3469cf073
Fix #3598 : Validate vehicle track movement ( #3612 )
2016-05-15 17:20:46 +01:00
Ted John
3d47f9869f
write get entry methods for scenery and path
2016-05-15 16:09:26 +01:00
janisozaur
b3101dd9b0
Don't crash when vehicles have 0 friction ( #3615 )
2016-05-15 15:59:42 +01:00
janisozaur
3a6978a9aa
Fix comparison highlighted by clang ( #3614 )
2016-05-15 15:20:33 +01:00
Yaroslav Tretyakov
938c498fac
Integrate 0x008B8F30 (gTrackVehicleInfo) ( #3605 )
2016-05-15 10:30:03 +01:00
janisozaur
ca430e1b23
Drop unused variables ( #3586 )
2016-05-13 18:21:58 +01:00
janisozaur
658e877955
Name all the typdef-ed structs ( #3581 )
2016-05-12 22:57:40 +01:00
janisozaur
8d0481deba
Make sure to only update valid vehicles ( #3543 )
...
Lets us load parks like Six Flags Carolina:
http://www.nedesigns.com/park/1571/six-flags-carolina/
2016-05-09 15:52:03 +01:00
Ted John
d2c5501eea
refactor sprite heads and counts
2016-05-09 00:08:03 +01:00
Marijn van der Werf
e3161d66d0
Implement misc_paint
2016-05-06 00:06:52 +02:00
janisozaur
68bad6505c
Add and correct licence headers to all sources ( #3108 )
2016-05-04 18:24:41 +01:00
Ted John
652b1c83db
integrate variables for lightning and toolbar dirty flags
2016-04-24 21:49:09 +01:00
Ted John
98f732aaf7
integrate screen variables ( #3411 )
2016-04-24 00:36:39 +01:00
Ted John
4cdb2df9dc
integrate screen variables
2016-04-23 11:16:46 +01:00
Ted John
467513616d
add global macro: gCurrentTicks
2016-04-23 02:49:24 +01:00
Ted John
b59f5c17ca
add global macros for park...
...
- gParkSize
- gParkEntranceFee
- gNumGuestsInPark
2016-04-23 01:00:00 +01:00
Wirlie
407359e82b
Fix #3318 . Mine/Mouse train now can swing on turns.
2016-04-20 22:32:36 -05:00
Derek Lee
4d1153669e
Refactor peep code
...
Use constants rather than magic numbers and make identifiers consistent
2016-04-18 23:34:11 -07:00
Yaroslav Tretyakov
c3ba519a6e
Integrate audio related variables ( #3322 )
2016-04-17 14:20:26 +01:00
IntelOrca
89ad0cc769
store windows in openrct2 memory and increase max
...
Allocate a bigger window list and viewport list in OpenRCT2 static memory and move over all references from RCT2.
This also removes the 'active' viewport pointer list and instead changes everything to just enumerate the whole viewport list
2016-04-14 23:00:35 +01:00
Duncan
9edd48c4b8
Merge pull request #3231 from marijnvdwerf/use-structs
...
Clean up data use
2016-04-13 12:38:58 +01:00
duncanspumpkin
08de41bdd5
Fix #2710 . Chairlifts no longer crash at large y value stations.
2016-04-12 19:28:27 +01:00
Marijn van der Werf
0fd42f408a
Extract new struct
2016-04-03 14:53:17 +02:00
duncanspumpkin
8c7dfd3097
Revert #3147 and fix construction issue. Revert most of c7c1f86
and rework to prevent issues
2016-03-21 21:21:43 +00:00
Michał Janiszewski
c1a413c298
Fix crash when opening canoes
2016-03-19 00:47:34 +01:00
duncanspumpkin
14c1a88812
Fix #3117 . Golf course crash fixed.
...
Issue caused by implementation mistakes
2016-03-12 07:56:03 +00:00
duncanspumpkin
2431558f84
Fix #3052 . Flying roller coasters now correctly place vehicles.
...
Issue caused by a missing bit of code during implementation.
2016-03-01 21:16:49 +00:00
Ted John
017d7f41f5
Merge pull request #3035 from Gymnasiast/burn-more-flags
...
Remove magic crash protection for Six Flags rides
2016-02-28 11:30:08 +00:00
Gymnasiast
939fa24647
Remove magic crash protection for Six Flags rides
2016-02-28 11:59:43 +01:00
duncanspumpkin
d7459d07f8
Fix jerky vehicles on station platforms. Fixes #3011 .
...
Issue caused by a mistake in implementing the function
2016-02-28 10:52:53 +00:00
IntelOrca
90665c7185
always show number of fatalities news item, no six flags bias
2016-02-28 10:28:09 +00:00
Gymnasiast
0b87cd766c
Don't make empty boats leave the platform on closed boat rides with passengers still on it, fixes #2728
2016-02-27 13:36:14 +01:00
Michał Janiszewski
6b514d1e3a
Fix possible issues highlighted at higher warn levels
...
Mostly possibly uninitialized values and signedness
2016-02-26 12:54:00 +01:00
Ted John
74973a4a97
Merge pull request #2950 from janisozaur/ride-names
...
Rename ride_entry functions and provide better logging
2016-02-25 12:43:19 +00:00
Michał Janiszewski
14bff0c66f
Rename rct_ride_type to rct_ride_entry
2016-02-25 13:33:19 +01:00
IntelOrca
b0887f174b
split sound and music mixing correctly, closes #1270
2016-02-24 22:42:50 +00:00
Michał Janiszewski
eb645cd4f3
Rename ride_entry functions and provide better logging
...
For hacked rides, provide the name of offender in the log.
2016-02-24 22:23:33 +01:00
duncanspumpkin
53df541a39
Relabelled sprite_flags to flags. Relabelled peep/fountain flags
2016-02-23 17:22:19 +00:00
duncanspumpkin
5340af4a12
Refactor sprite_flags
2016-02-23 17:09:53 +00:00