Michał Janiszewski
1d28826b79
Fix -Wdocumentation and add it to default warnings
2018-06-11 09:52:54 +02:00
Ted John
04da3be824
Move Widget.cpp to libopenrct2ui
2018-06-11 00:04:41 +01:00
Ted John
ae6af47341
Move TitleSequencePlayer to libopenrct2ui
2018-06-10 23:39:56 +01:00
Ted John
85dc161c5a
Add SetMainView to WindowManager
2018-06-10 23:33:52 +01:00
Aaron van Geffen
dcff6895b5
Refactor game_init_all into GameState::InitAll.
2018-05-30 11:53:32 +02:00
Ted John
4d4e7ba4b1
Create new GameState class for updating the game
2018-05-30 11:53:30 +02:00
Ted John
96a0a22cd1
Make start on loading objects only once
2018-05-29 18:39:12 +01:00
Ted John
721dc00778
Move park_update into Park class.
...
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net >
2018-05-19 19:44:01 +02:00
Michał Janiszewski
a2ef4bd699
Exclude pre-formatted blocks from clang-format ( #7520 )
...
[ci skip]
2018-05-16 20:41:29 +02:00
ZehMatt
30eb844c7f
Remove game_command_remove_wall and references.
2018-05-11 12:33:59 +02:00
duncanspumpkin
87b3e5a823
Start the big refactor
2018-05-05 11:04:46 +01:00
oli414
3bff12c081
Seperate surface tile element
2018-05-01 16:33:16 +02:00
Ted John
42f46d15e3
Merge pull request #7414 from OpenRCT2/refactor/string-conversions
...
Refactor string conversion between RCT2 and UTF8
2018-04-25 10:14:39 +01:00
Hielke Morsink
30063984e6
Delete unused function arguments or mark them so ( #7426 )
...
This aims to make future refactoring easier. The arguments are removed where possible, but kept and marked with C++17's [[maybe_unused]] where they could not be removed (e.g. when they are used as a callback, rather than called directly).
I've skipped the rides/<category>/* and peep/* source files, because the rides source files are mostly generated and have a ton of unused variables, and the peep source files are being refactored.
I've also skipped most of window/* source files, because most of the functions are used as callbacks and will be bulk-renamed at some point.
2018-04-20 13:56:37 +02:00
Ted John
deaa60f8f1
Refactor string conversion between RCT2 and UTF8
...
Use Win32 API for conversion on Windows for non-1252 code pages instead of built-in tables.
2018-04-18 13:16:20 +02:00
Gymnasiast
60b864441a
Fix encoding of scenario index names
2018-04-12 13:13:14 +02:00
ZehMatt
417a2586b6
Implement game action for banner naming.
2018-03-27 16:29:53 +02:00
ZehMatt
b45609a278
Implement game action for park naming.
2018-03-27 16:29:52 +02:00
ZehMatt
199a3e33f4
Implement game action for sign naming.
2018-03-24 05:19:19 +01:00
Michał Janiszewski
fc97c8c5db
Reduce inclusion of <string> header
2018-03-21 22:39:19 +01:00
Ted John
9b604310a2
Implement game action for staff set colour
2018-03-20 09:31:39 +01:00
Ted John
708843b526
Implement game action for park marketing
2018-03-20 09:31:39 +01:00
Ted John
5a803d2551
Implement game action for park set research funding
2018-03-20 09:31:39 +01:00
Ted John
16a7e21ffa
Implement game action for park set loan
2018-03-20 09:31:39 +01:00
Hielke Morsink
087519ca62
Fix #5261 Deleting the sign after copy/pasting it will crash the game
...
Prior to the previous commit, signs could be duplicated by pasting them using the tile inspector, which results in some funky behaviour. A duplicated sign refers to the same banner index (which in turn refers to the same user string ID), making the player unable to modify it. Deleting it would previously even crash the game.
This commit looks for such signs when loading a scenario, and attempts to fix them, by creating a new banner entry (and user string if one is used).
2018-03-13 19:45:48 +01:00
duncanspumpkin
33a6a5a994
Fix #7209 : Reset spatial index before removeing peeps on fix save.
...
If the spatial index is corrupted such as in IndianaJones then deleting multiple peeps from the same spatial index will cause an infinite loop. Therefore this will now reset and remake the spatial index if there are peeps that require removing. Note it doesn't reset the spatial index for all saves as it is not required
2018-03-12 11:27:43 +00:00
Michael Steenbeek
1fa2fa8f80
Refactor ride->entrances and ride->exits
2018-03-07 19:10:50 +01:00
Michael Steenbeek
c86dfe5f1b
Replace hard coded max map size
2018-02-22 10:22:47 +01:00
wolfreak99
2d8c473f75
Sync Peep Spawn over network
2018-02-19 21:11:14 +01:00
Michael Steenbeek
d481cca2ed
Remove some redundant casts and fix rct_sprite::AsDuck()
2018-02-15 13:04:25 +01:00
Ted John
4d8fe051e8
Remove most usages of object_entry_groups
2018-02-12 12:48:41 +00:00
Michał Janiszewski
a9afe3253c
Fix #7160 : Crash when trying to play the Dynamite Dunes scenario
...
The fix shouldn't modify guests that don't have any ride set.
This also fixes how peeps get removed and adds name of the offending
guest in the warning message.
2018-02-11 09:47:52 +01:00
Michał Janiszewski
73c861ab59
Improve selecting destination station when fixing imported sprites
2018-02-10 13:07:52 +01:00
Michał Janiszewski
61770b1dd7
Fix possibly invalid values of sprite fields on import
2018-02-10 13:07:52 +01:00
Michał Janiszewski
282553f0c5
Upgrade some char arrays to strings
2018-02-07 23:14:29 +01:00
Michał Janiszewski
4c7053f581
Fix remaining usages of strings used in intents
2018-02-07 23:14:29 +01:00
Michał Janiszewski
04ea015302
Fix #7135 : Pass save path as std::string, not a pointer ( #7141 )
2018-02-07 12:11:37 +00:00
Gymnasiast
cc4f7e144a
Remove most usages of 'new Intent'
2018-02-05 23:23:26 +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
Ted John
aa0d7645da
Refactor ride_ratings.c to C++
2018-01-18 22:33:06 +00:00
Marijn van der Werf
7d0417a366
Import private headers in remaining files
2018-01-18 22:57:55 +01:00
Marijn van der Werf
430bf482f2
Add viewport getter
2018-01-18 22:57:55 +01:00
Ted John
6fd56d140d
Remove remaining uses of platform_enumerate_files_begin
2018-01-18 11:38:52 +01:00
Ted John
ca7f9dec8e
Move function out of C extern
2018-01-14 01:06:47 +00: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
Michael Steenbeek
cd5a1ba888
Compile files in world folder as C++
2018-01-11 13:25:09 +01:00
Michał Janiszewski
6a65f791b6
Add const to arguments
2018-01-10 23:58:57 +01:00
Michael Steenbeek
6a88d6e04d
Move and rename RCT{1,2,12}.h
2018-01-09 13:36:41 +01:00
Ted John
c3eab7ead6
Refactor window.c to C++
2018-01-07 12:39:58 +01:00