Michael Steenbeek
d481cca2ed
Remove some redundant casts and fix rct_sprite::AsDuck()
2018-02-15 13:04:25 +01:00
Hielke Morsink
55979a3fff
Remove and replace C typedefs
...
`typedef struct/union/enum name { ... } name_again;` is not needed whe compiling C++, moving the name at the back to be in front of the object and removing `typedef` makes it usable the very same way.
This also replaces typedefs with the using keyword. They have better readability, especially for function pointer types, and would allow more flexibility when used with templates.
2018-02-14 09:42:26 +01:00
Ted John
d22572d0b9
Remove rct_object_entry_extended
2018-02-12 12:48:41 +00:00
Ted John
4d8fe051e8
Remove most usages of object_entry_groups
2018-02-12 12:48:41 +00:00
Ted John
d905dde070
Simplify selected object flags
2018-02-12 12:48:41 +00:00
Hielke Morsink
8e55c811f6
Check for server version instead of address ( #7155 )
2018-02-09 19:16:54 +00:00
Gymnasiast
f003366d22
Remove STEX selection from Object Selection window
2018-02-09 13:47:15 +01:00
Gymnasiast
b1ab852fb7
Add object_entry_get_type()
2018-02-09 13:47:15 +01:00
Ted John
504e635933
Merge pull request #7150 from Broxzier/absolute-path
...
Make custom paths absolute and show full path in load/save window
2018-02-08 17:25:52 +00:00
Ted John
9f533d7265
Merge pull request #7143 from IntelOrca/refactor/server-list
...
Refactor server list
2018-02-08 17:25:37 +00:00
Hielke Morsink
ced75956d1
Populate loadsave window with absolute path
...
When pressing "up", the code would look for the parent in the given path, which doesn't work well with relative paths. This commit fixes this behaviour.
2018-02-08 14:23:21 +01:00
Michał Janiszewski
20f95d073a
Fix remaining uses of WC_LOADSAVE intent
2018-02-07 23:14:29 +01:00
Ted John
9d50a36f2c
More improvements to server list
2018-02-07 19:23:44 +00:00
Ted John
c7128ec988
Refactor ServerList more
2018-02-07 13:01:36 +00:00
Ted John
c42a63c52c
Refactor memory handling in ServerList more
2018-02-07 12:51:52 +00:00
Ted John
5d51676523
Refactor memory handling in ServerList
2018-02-07 12:51:52 +00:00
Hielke Morsink
915dbdf869
Add button to tile inspector to make entrances usable
...
With this, entrances and exits that have been moved away from its original XY
location can be made usable. Only one entrance or exit will be usable per
station.
2018-02-06 19:09:51 +01:00
Gymnasiast
e3c0f6606d
Clean up Intent.{cpp,h}
...
This gets rid of the C transfer functions, add licence and does some alignment fixes
2018-02-05 23:23:26 +01:00
Gymnasiast
778ba466c5
Remove almost every extern C block
2018-02-05 16:20:15 +01:00
Richard Jenkins
95dfcea6bd
Implement #4984 : Add option to highlight vomit, litter and handymen
2018-02-05 00:20:12 +00:00
Ted John
522e113929
Fix wrong highlighted tab in object selection window
2018-02-04 12:34:41 +00:00
Michael Steenbeek
9bd812c855
Move most of _legacy.c to C++ ( #7117 )
2018-02-02 23:11:41 +01:00
Marijn van der Werf
7efaf3dd80
Decrease dependency of world on windows
2018-02-01 13:59:46 +01:00
Michael Steenbeek
b4018d398c
Add more object source filters
2018-01-31 13:07:20 +01:00
duncanspumpkin
96f664abb9
Fix Water Ride spinning on slope bug. Name flags. Refactor
...
There was a bug in the spinning water ride code that would mean that it would never trigger the stopping of spinning when going up a lift. This mistake was made during implementation of the function.
2018-01-30 12:53:50 +00:00
Gymnasiast
6bd0b2baea
Show ride group name in Object Selection
2018-01-29 20:09:05 +01:00
Gymnasiast
e8b2a3df0d
Slight research refactor
2018-01-29 12:52:12 +01:00
Gymnasiast
981b67a90f
Reorder edge textures
2018-01-27 23:22:24 +01:00
Ted John
8f1100c986
Merge pull request #7066 from IntelOrca/refactor/memory-operations
...
Refactor memory operations 1
2018-01-26 11:41:19 +00:00
pss9205
6b716dc157
Fix #7021 : Extra rating factors overflow the vehicle tab in Korean ( #7073 )
2018-01-23 16:06:37 +01:00
Michael Steenbeek
fdeaaa5631
Allow selecting RCT1 map edges in land tool
2018-01-21 17:18:00 +01:00
Ted John
02d783a993
Fix build
2018-01-21 12:41:42 +00:00
Ted John
cebe13984f
Remove most of remaining memory functions from libopenrct2ui
2018-01-21 11:17:41 +00:00
Ted John
7f8b795842
Refactor memory handling in EditorObjectSelection.cpp
2018-01-21 11:17:41 +00:00
Ted John
589e0f40d0
Refactor memory handling in Map.cpp
2018-01-21 11:17:41 +00:00
Ted John
cb44dc5c21
Fix changelog
2018-01-21 11:17:41 +00:00
Ted John
b52333f532
Refactor memory handling in TitleScenarioSelect.cpp
2018-01-21 11:17:40 +00:00
Ted John
4d57a4b03a
Refactor memory handling in TrackDesignPlace.cpp
2018-01-21 11:17:40 +00:00
Ted John
cbbb35bf79
Refactor memory handling in ObjectLoadError.cpp
2018-01-21 11:17:40 +00:00
Ted John
badb90ba20
Refactor memory handling in Changelog.cpp
2018-01-21 11:17:40 +00:00
Ted John
ba5bc415c7
Refactor memory handling in window sources
2018-01-21 11:17:40 +00:00
Richard Jenkins
104419f6b2
Fix #7060 : Ride window settings can underflow
2018-01-20 20:34:39 +00:00
Ted John
6d63729a40
Fix MSVC
2018-01-18 22:59:30 +00:00
Marijn van der Werf
4c956def67
Update UI imports
2018-01-18 22:57:55 +01:00
Ted John
cb720025fa
Replace platform_enumerate_directories_begin with FileScanner code
...
This is isn't a particularly pretty implementation but it is only temporary until we can use std::filesystem.
2018-01-18 11:38:52 +01:00
Ted John
6fd56d140d
Remove remaining uses of platform_enumerate_files_begin
2018-01-18 11:38:52 +01:00
Aaron van Geffen
a1e7a18a67
Cheats window: format braces et cetera.
2018-01-16 23:22:52 +01:00
Aaron van Geffen
c951c7b539
Ride cheats: reorder and group cheats in boxes by function.
...
* Change button order.
* Move checkboxes into a more logical order.
* Add group boxes around checkboxes.
2018-01-16 23:22:52 +01:00
Ted John
68202db51c
Make ClimateWeatherData and ClimateWeatherGloomColours internal to Climate.cpp
2018-01-14 01:06:47 +00:00
Ted John
83cdd56825
Unify current and next climate state into common struct
2018-01-14 01:06:47 +00:00