ζeh Matt
a45d72f562
Extract functions out of GameFixSaveVars
2023-10-20 14:22:14 +03:00
Andrew
e17bca3b53
Made setting the game speed a game action ( #20825 )
...
* Bare minimum for a game action
* Changelog entry
* Fixed formatting
* Consistent capitalization
* Committed wrong file
* Removing redundant toolbar invalidations
* Bump network version; remove redundant qualifier
* Fixed crash on starting server
2023-10-04 16:13:40 +01:00
ζeh Matt
88ec42e7ab
Remove WindowUpdateAll from GameLoadInit
2023-06-28 23:53:09 +03:00
Silent
c4b70358c8
More MAX_PATH removals ( #20113 )
...
* Refactor FileScanner to lift a MAX_PATH limit
* Replace Platform::EnsureDirectoryExists with Path::CreateDirectory
* Remove MAX_PATH from Platform.Posix.cpp
2023-05-09 20:08:46 +01:00
ζeh Matt
0c3c2ebcd2
Refactor MapGetSurfaceElementAt to accept TileCoordsXY
2023-04-05 23:13:47 +03:00
Duncan
b56748bc82
ObjectEntry Cleanup. FootpathItem, SceneryGroup, Water, LargeScenery ( #19385 )
...
* Move footpathitem entry into new getter
* Move scenery group entry into new getter
* Move water entry into new getter
* Move large scenery entry into new getter
* Remove unused header includes
* Fix compile issue
* Include missing header from vcxproj
2023-02-15 21:35:16 +00:00
Matthias Moninger
62a96cc251
Fix and refactor banner fixing ( #19288 )
2023-01-28 22:43:59 +00:00
Matthias Moninger
5994fe6be6
Merge pull request #19284 from ZehMatt/entityId
...
Refactor sprite_index to entityId for entities
2023-01-28 18:13:04 +02:00
Duncan
24581e781f
Move misc ObjectEntries into Object folder ( #19281 )
...
* Move water entry
* Move FootpathEntry
* Move EntranceEntry
* Move SceneryGroupEntry
2023-01-27 19:44:58 +00:00
ζeh Matt
2f8e208a9d
Refactor sprite_index to Id
2023-01-27 19:21:57 +02:00
Duncan
e09f27df3c
Rename snake_case Class names (Remaining Bits) ( #19237 )
...
* Rename snake_case Class names
* Clang format
* Fix build issues
2023-01-21 19:57:17 +00:00
Duncan
859b071ddc
Rename classes with snakes OpenRCT2/A*-F* ( #19215 )
...
* Rename classes with snakes OpenRCT2/A*-F*
* Clang format files
2023-01-19 08:16:44 +00:00
Hielke Morsink
0762fcb601
Rename snake_case functions in OpenRCT2/util folder
2023-01-18 22:44:13 +01:00
Hielke Morsink
2c224cfd53
Rename snake_case functions in OpenRCT2/network folder ( #19203 )
2023-01-18 06:05:53 +00:00
Michael Steenbeek
bb55c6ce66
Remove loadsasnakes ( #19192 )
...
* Rename snake_case methods in scenario folder
* Rename snake_case methods in title folder
* Rename snake_case methods in object folder
* Rename snake_case methods in platform folder
* Rename snake_case methods in windows folder
* Rename tile_inspector.h to TileInspectorGlobals.h
* Rename snake_case methods in ui/windows folder
2023-01-17 19:46:55 +00:00
Hielke Morsink
6b7dc8fcdb
Rename snake_case functions in openrct2/src folder
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2023-01-17 13:24:51 +01:00
Stephan Spengler
76b918e7ed
Change openrct2/ride methods to UpperCamelCase, part 1
2023-01-17 01:32:54 +01:00
Michael Steenbeek
b4480b344e
Rename snake_case functions from localisation folder
2023-01-16 23:12:35 +00:00
Gymnasiast
5309c80e29
Remove snake_case in interface folder
2023-01-16 22:20:41 +01:00
Hielke Morsink
6dafbbfb65
Rename global window functions to TitleCase ( #19167 )
2023-01-16 20:13:42 +00:00
Duncan
7f5934cc95
Remove snake_case from second chunk of Drawing ( #19166 )
2023-01-16 18:52:17 +00:00
Duncan
8a8d3105f3
Remove snake_case from first chunk of Drawing ( #19164 )
...
* Remove snake_case from first chunk of Drawing
* Address formatting
2023-01-16 13:50:43 +00:00
Michael Steenbeek
412bf8f8be
Use ride references instead of pointers
2023-01-07 14:02:18 +01:00
Nehemiah Negussie
eeb5c58238
Fix #18971 : New Game does not prompt for save before quitting ( #19046 )
...
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2023-01-06 08:56:46 -03:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Rik Smeets
0ea5f343af
Fix #18469 : Land rights window issues ( #18662 )
...
Global variables regarding land ownership weren't initialized upon loading a .park file. This would lead to different bugs when using the 'Land rights' window, like markers remaining visible indefinitely and not being able to select the type of land rights to buy.
2022-11-23 20:02:34 +01:00
Duncan
482971710d
Apply code style to context functions
2022-11-06 21:49:07 +01:00
Hielke Morsink
abac080d3e
Rename public general config data members
2022-10-16 21:46:01 +02:00
Duncan
67bbc8560d
Code style: Remove snakes from everything world apart from Map.h ( #18273 )
...
* Remove remaining snakes from world (outside of map)
* Initial few desnaking of Map.h
2022-10-11 19:39:24 +01:00
Gymnasiast
d5f6a5b285
Replace context_load_park_from_file() with object equivalent
2022-10-08 20:12:35 +02:00
Duncan
5dba30778d
Code style: Remove more snakes from the park, maphelper, scenery. ( #18222 )
2022-10-08 06:56:17 -03:00
duncanspumpkin
2c29190ff8
Remove snakes from entrance
2022-10-04 20:07:35 +01:00
Duncan
3565a0172d
Attack snakes in banners and climate ( #18163 )
2022-10-01 18:54:15 +02:00
Rik Smeets
425000bfca
Don't prompt to 'Save game as' when saving ( #16819 )
...
After loading a saved game and choosing 'Save game', the 'Save game as' window would open the first time every time after loading the save.
Now, it will be saved using the existing save path, except when an autosave is loaded which the player probably doesn't want to overwrite.
2022-09-25 08:33:28 +02:00
Hielke Morsink
7f29e4e39c
Make rct_windowclass strong type WindowClass
...
This already revealed some places where implicit conversions were done, including some where its use was nonsense (MouseInput.cpp).
The changes to the Intent class were necessary to keep things working, and this splits things up more neatly.
2022-08-21 18:38:25 +02:00
Hielke Morsink
d05d675ed9
Refactor window functions to take references 6
2022-07-31 17:23:17 +02:00
Michael Steenbeek
0bfc151ab9
Remove remaining usages of gGameCommandErrorText
2022-07-30 18:04:59 +02:00
Raymond Zhao
71ad3af930
Use more smart pointers in openrct2-ui ( #17582 )
...
* Use more smart ptrs
* Use move instead of copy ctor
2022-07-22 11:48:43 +01:00
Ted John
9f96b0df33
Separate map.change and map.changed events
...
Also fix network plugin logic.
2022-03-21 23:09:40 +00:00
Ted John
84fdd44e6a
Add map changed hook
2022-03-21 21:42:30 +00:00
Ted John
dbf83f018c
Implement lifetime logic of transient plugins
2022-03-21 21:42:30 +00:00
Ted John
90718ca81c
Refactor patrol area class to new file
2022-03-11 18:39:04 +00:00
Silent
159a76d7ec
Refactor uses of safe_strcat_path
2022-03-10 20:18:17 +01:00
Ted John
b7b8816db7
Add plugin hook for map save
2022-03-07 21:40:48 +01:00
Michael Steenbeek
c334c7a176
Merge pull request #16724 from Gymnasiast/refactor/remove-path_get_filename
...
Remove four old path functions
2022-03-02 22:25:08 +01:00
Hielke Morsink
6ba0a3bd49
Use u8 strings when dealing with file paths
2022-03-01 22:12:39 +01:00
Gymnasiast
33edc59883
Replace path_remove_extension()
2022-02-26 18:26:24 +01:00
Gymnasiast
49b414a40e
Replace calls to path_get_filename()
2022-02-26 17:20:07 +01:00
Hielke Morsink
f47c1b9f96
Close #16468 : Use TIdentifier for StationIndex
2022-02-18 23:11:07 +02:00
Michael Steenbeek
5edc561715
Close #11437 : Migrate old platform methods
2022-02-18 21:57:00 +01:00