Hielke Morsink
bc2ac2e28b
Split extension setter into two functions
2016-01-02 20:45:00 +01:00
Hielke Morsink
f31a5f2248
More secure checks for removing and setting file extensions.
2016-01-02 18:57:11 +01:00
Alex Bahm
2c7f0d6ae2
Improved mechanic selection for broken rides
...
Switch to using manhattan distance to calculate distance. Also changed
starting closestDistance to UINT_MAX and removed ternary check because it is not needed.
2015-12-29 13:51:30 -08:00
Ted John
69f0e9d55d
Merge pull request #2398 from Broxzier/comments_and_optimizations
...
Refactored some util functions and some minor tweaks for saving tracks
2015-12-29 11:31:58 +00:00
Jonathan Haas
dfd6cfef87
Fix incorrect memset
2015-12-27 20:33:04 +01:00
Jonathan Haas
cf67177a08
Extract ride data array, use memset for zeroing array
2015-12-27 18:42:32 +01:00
Jonathan Haas
bb01732f74
Fix indentation
2015-12-27 13:06:18 +01:00
Jonathan Haas
cf78b28adf
Use memmove for shifting
...
Use memmove for shifting the customer history, rename ride fields, and add back the offset comments.
2015-12-27 10:45:11 +01:00
Jonathan Haas
b71c649d45
Refactor ride customer count
...
Renamed some confusing ride fields, extracted function to get recent ride customer count.
2015-12-26 22:03:33 +01:00
IntelOrca
574774b2af
add notification conditions
2015-12-26 17:33:33 +00:00
Jonathan Haas
2ed4802032
Fix and replace some StringIDs
...
Create some additional named StringIDs.
Fix a broken condition for tracked peep notifications, as the in/on ride messages were reversed.
2015-12-26 14:50:03 +01:00
Aaron van Geffen
9232a9906f
Inventarised instances of RCT2_ADDRESS_COMMON_FORMAT_ARGS
2015-12-26 18:24:36 +09:00
Aaron van Geffen
2c5651614c
Corrected misspellings of "substitute".
2015-12-23 00:40:36 +09:00
IntelOrca
db18fa8f14
finally fix #1619 : Can't place any path
...
RCT2_ADDRESS_TOOL_WIDGETINDEX was being read as an int32 sometimes
2015-12-21 22:28:34 +00:00
LRFLEW
e6f771ec90
Added newlines at end of files
2015-12-20 22:03:37 -06:00
IntelOrca
1ffc9a6355
fix problems with wooden_a_supports_paint_setup and refactor
2015-12-19 21:30:32 +00:00
IntelOrca
96b9a4ed18
implement wooden_a_supports_paint_setup
2015-12-19 20:11:04 +00:00
IntelOrca
57207bac34
refactor new track painter, reduce empty jump tables
2015-12-19 12:39:07 +00:00
Ted John
f93bc91510
Merge pull request #2462 from duncanspumpkin/fix_trackSave
...
Fix Track Saving
2015-12-19 12:13:03 +00:00
IntelOrca
3019b55415
implement facility_paint_setup
2015-12-19 00:06:31 +00:00
Gymnasiast
e2ccfc1cb8
Only check if ride mode exists when placing new track design, fixes #2445
2015-12-15 15:09:39 +01:00
Gymnasiast
1873e387ca
Log an error if an unknown vehicle edit command is sent
2015-12-13 15:49:23 +01:00
Gymnasiast
e9840b7488
Allow changing number of trains without retesting
2015-12-13 15:49:23 +01:00
Kyle Kirby
caf07c2064
Clean up the comments a litte
...
• Make comment heads be /**
• Make rct2 addresses be double spaced indented
• Make there be a space afte rct2: and the address
• Make single-line rct2 addresses be full block comments
• Move description of method to top of comment
2015-12-11 16:19:46 -06:00
Kyle Kirby
8e5355640f
Convert spaces to tabs
2015-12-11 06:28:35 -06:00
duncanspumpkin
9f1b38f337
Track saving was broken due to using wrong coordinates
2015-12-11 09:57:08 +00:00
Linus Unnebäck
4bfbe27116
use larger integers in ride/track.c
2015-12-06 18:56:09 +01:00
Michał Janiszewski
796021cfdc
fix suspicious left shifts
...
See b5b1957f5
2015-12-02 08:32:15 +01:00
duncanspumpkin
d91a9c965c
Fix #2405 . Foundations under shops now correctly drawn.
...
Issue was caused by a mistake in implementation
2015-11-30 18:00:33 +00:00
duncanspumpkin
518b19156a
Fix vehicle colours using scenario rand
2015-11-29 17:18:39 +00:00
duncanspumpkin
a4cb2c55d1
Fix ride create on multiplayer using scenario_rand for colour causing desync
2015-11-29 17:18:39 +00:00
Hielke Morsink
415f55d38d
Removed '.TD6' part from being added automatically when saving a new track
2015-11-29 16:45:02 +01:00
Hielke Morsink
5ca371c5c5
Displaying full track filename excluding the real extension
2015-11-29 16:36:46 +01:00
e-foley
b147fd3a90
make speed affect upward launch ratings only
2015-11-21 18:17:26 -08:00
IntelOrca
c6308dcb41
stop ride window from opening when there is a vehicle crash on the title screen
2015-11-21 13:40:00 +00:00
IntelOrca
1ff2d68061
implement track paint shop
...
implement track paint shop, part 2
implement track paint shop, part 3
implement track paint shop, part 4
2015-11-20 22:53:53 +00:00
Dom Light
3a8b25a0ee
Sanitize audio.h
2015-11-17 01:05:14 +00:00
duncanspumpkin
eaa2d10ec4
Fix #2070 . Incorrect highest drop penalty height caused incorrect calculations
2015-11-15 18:11:49 +00:00
duncanspumpkin
13e43b779b
Refactor large scenery placement
2015-11-14 16:44:03 +00:00
Michał Janiszewski
075b98e209
Minor cleanups
...
Mostly just setting variables to better define game state, with one
minor update of decompilation where an `or` instruction was used in
place of `mov` (in `sub_6CBCE2`).
2015-11-12 12:19:40 +01:00
duncanspumpkin
6a00482d1f
Fix #1834 & #2288 . Non complete circuit tracks now save correctly.
...
Issue was caused by a bit of code not iterating correctly backwards.
2015-11-11 19:44:53 +00:00
IntelOrca
54ff0b2045
ride_with_colour_config_exists should ignore itself
2015-11-10 21:28:10 +00:00
IntelOrca
501d36b16c
format top spin seat position offset array
2015-11-09 18:39:22 +00:00
duncanspumpkin
2ee1e05408
Implemented seatpositionoffset.
2015-11-09 17:39:49 +00:00
Alexander Overvoorde
6114aa5dac
Rename hmm variable to something more descriptive
2015-11-08 22:30:51 +01:00
Alexander Overvoorde
b20a844982
Fix "land not owned" errors being overridden by "can't construct here"
...
I'm not entirely sure what the "hmm" check is about, but it caused
track_place() to return early when called from
window_ride_construction_construct(), so I moved up the owned land check
to give it a higher priority.
2015-11-08 21:47:18 +01:00
Alexander Overvoorde
d1a6b65049
Fix supports error appearing when building outside of owned land
...
This was caused by ride_construction_toolupdate_construct() pointlessly
trying to fix the "building outside owned land" error by increasing the Z.
2015-11-08 21:47:17 +01:00
Gymnasiast
4ba83b0418
Rename RIDE_ENTRY_HIDE_LAST_OPERATING_MODE to RIDE_ENTRY_DISABLE_LAST_OPERATING_MODE
2015-11-08 15:01:40 +01:00
Gymnasiast
e749c1a82c
Identify RIDE_ENTRY_FLAG_15 and 17, fix 'Show all operating modes' cheat
2015-11-08 14:55:01 +01:00
Flukiestemperor
8d3655e0f6
fix #2162
2015-11-07 12:22:44 +00:00