Commit Graph

7212 Commits

Author SHA1 Message Date
janisozaur f60855ab95 Fix strict aliasing breakage in ride_set_name() (#9) 2016-05-08 14:04:15 +01:00
Michał Janiszewski 0366a6c57f Fix possible bad memory access when placing track design
Name of ride can be set to a string of variable length, like in
`track_design_open` it gets set to the variable length filename. In
`ride_set_name`, however, the ride name is accessed as if it was
36-bytes long anyway. This makes sure all 36 bytes are available for
accessing.
2016-05-08 14:04:14 +01:00
Michał Janiszewski 227c772099 Fixes to track design manager
Fix errorneous sizeof() argument, skip unneeded memset
2016-05-08 14:04:13 +01:00
YJSoft db7f5cff81 add files at xcode project for #3477 2016-05-08 14:04:12 +01:00
Ted John 87d4a9dab9 use track rather than tracks for user directory 2016-05-08 14:04:12 +01:00
Ted John a76a76a4b5 prevent crash when TD6s have less than 4 bytes 2016-05-08 14:04:11 +01:00
Ted John 70d613ede2 prevent crash in some place track design case 2016-05-08 14:04:10 +01:00
Ted John cf27410b4e fix track index file writing 2016-05-08 14:04:09 +01:00
Ted John d4c30ea5ec fix warnings 2016-05-08 14:04:09 +01:00
Ted John e20d8b4040 add licence headers to new sources 2016-05-08 14:04:08 +01:00
Ted John 805a89d49a refactor more track place 2016-05-08 14:04:07 +01:00
Ted John 7564d0e5a6 fix placing and saving of mazes 2016-05-08 14:04:06 +01:00
Ted John 52ab86fdcf rename functions without design word 2016-05-08 14:04:06 +01:00
Ted John f110597f41 clear up sub_6CB945 2016-05-08 14:04:05 +01:00
Ted John 6797753e18 refactor track_place_ride 2016-05-08 14:04:04 +01:00
Ted John f9074485f9 integrate more variables 2016-05-08 14:04:04 +01:00
Ted John 629e36bc0a integrate variable: _trackSaveDirection 2016-05-08 14:04:03 +01:00
Ted John c844275cea integrate variable: gTrackPreviewOrigin 2016-05-08 14:04:02 +01:00
Ted John a8a8a7b1b2 fix track saving 2016-05-08 14:04:01 +01:00
Ted John cbc1848db4 refactor track design save: _trackSavedMapElements 2016-05-08 14:04:00 +01:00
Ted John c0fa762fa5 integrate some unknown variables 2016-05-08 14:04:00 +01:00
Ted John b9ae7d44cf refactor track preview map backup 2016-05-08 14:03:59 +01:00
Ted John 9afdd7b514 refactor track_design_draw_preview 2016-05-08 14:03:58 +01:00
Ted John 09bc083a69 integrate variables for preview min, max 2016-05-08 14:03:57 +01:00
Ted John 7c0d3a9077 fix install track 2016-05-08 14:03:57 +01:00
Ted John 231ea9e97c fix rename and delete track design 2016-05-08 14:03:56 +01:00
Ted John f4f8801f2b fix memory issue and add variable for scenery toggle 2016-05-08 14:03:55 +01:00
Ted John feb34660e3 fix up track manage window 2016-05-08 14:03:54 +01:00
Ted John a19e5feadf fix track design mirror and ride name 2016-05-08 14:03:53 +01:00
Ted John 02a979cad5 refactor track design functions 2016-05-08 14:03:52 +01:00
Ted John d88ef5e4c2 rename track list to track design index 2016-05-08 14:03:52 +01:00
Ted John 993ef35508 reduce use of gActiveTrackDesign 2016-05-08 14:03:51 +01:00
Ted John f00d7daef5 fix track design preview, place and refactor 2016-05-08 14:03:50 +01:00
Ted John 3c95562efd fix new ride design count and track design listing 2016-05-08 14:03:49 +01:00
Ted John 1908743c71 refactor track save, move into own source 2016-05-08 14:03:49 +01:00
Ted John 77e7313540 move track design related functions to new source 2016-05-08 14:03:48 +01:00
Ted John e9935fee09 refactor some of the track design place code 2016-05-08 14:02:48 +01:00
Ted John 68520765fc attempt to pass TD6 more for preview
Currently breaks preview.
Construction kind of works but has bad settings and crashes for some ride types
2016-05-08 14:02:48 +01:00
Ted John b2cc98da91 change track list window to use new index 2016-05-08 14:02:47 +01:00
Ted John 5ad8fb272e create new track index file format at startup 2016-05-08 14:02:46 +01:00
Duncan fc74e5045e Merge pull request #3399 from zsilencer/paint-setup/submarine
Submarine paint setup
2016-05-08 05:28:27 +01:00
OpenRCT2 git bot 95a1f0a0fd Merge Localisation/master into OpenRCT2/develop. 2016-05-08 04:00:24 +00:00
janisozaur 2c3a832970 Swizzle bits of a window correctly for mingw builds (#3521) 2016-05-07 22:44:46 +01:00
Ted John de02bbc922 Merge pull request #3280 from marijnvdwerf/paint-setup/crooked-house 2016-05-07 18:51:26 +01:00
Ted John 305fe0856e Merge pull request #3180 from marijnvdwerf/paint-setup/dodgems 2016-05-07 18:40:44 +01:00
Ted John a0dac1fee5 fix #3323: save (not save as) crashed afterwards due to saving objects 2016-05-07 18:24:50 +01:00
Ted John 2ecbcfc4c9 Merge pull request #3165 from marijnvdwerf/spiral-slide-paint-setup 2016-05-07 18:05:05 +01:00
LRFLEW 355b163f36 Fixed incorrect language codes in config.c (#3513) 2016-05-07 10:06:46 +01:00
Yaroslav Tretyakov ac6cba7047 Fix staff patrol area drawing (#3487) (#3512) 2016-05-07 10:06:16 +01:00
Ted John ae526f96d7 Merge pull request #3486 from Gymnasiast/remove-station-length-limit
Increase station length limit to 32
2016-05-07 10:05:23 +01:00