ZehMatt
c858f21845
Default initialize members the same way across the file
2021-08-23 14:41:18 +03:00
ZehMatt
07ceec6b60
Make all location types constexpr
2021-08-23 14:35:58 +03:00
frutiemax
046c060e74
Part of #13874 : Replace Track Sequence properties
2021-08-22 18:01:03 -04:00
frutiemax
a29b369ff8
Part of #13874 : Replace Sequence Element Wall table
2021-08-22 17:58:52 -04:00
frutiemax
382315b2c3
Part of #13874 : Replace block tables
2021-08-22 17:57:56 -04:00
frutiemax
b5219d76d8
Part of #13874 : Replace pricing tables
2021-08-22 17:55:17 -04:00
frutiemax
780eb4f287
Part of #13874 : Replace piece lengths
2021-08-22 17:53:38 -04:00
frutiemax
716dd3dcb6
Part of #13874 : Replace mirror maps
2021-08-22 17:52:56 -04:00
frutiemax
72e6f9a694
Part of #13874 : replace height markers positions tables
2021-08-22 17:52:19 -04:00
frutiemax
1bfa26e4c5
Part of #13874 : replace flags table
2021-08-22 17:51:35 -04:00
frutiemax
675777efaf
Part of #13874 : replace curvechain
2021-08-22 17:50:18 -04:00
frutiemax
5a8cc7c610
Part of #13874 : Replace alternativeTypes
2021-08-22 17:49:39 -04:00
frutiemax
80418efafb
Part of #13874 : Replace TrackCoordinates
2021-08-22 17:49:00 -04:00
frutiemax
5c261b6d2e
Part of #13874 : TrackElementDescriptor loader
2021-08-22 17:47:10 -04:00
ζeh Matt
f49559daa5
Fix #15259 : Large scenery not rendering correctly
2021-08-22 22:05:05 +02:00
Michael Steenbeek
95111047b0
Merge pull request #15249 from Broxzier/feature/make_ptr
...
Refactor use of std::unique_ptr
2021-08-21 21:50:42 +02:00
Michael Steenbeek
7b3258b17e
Merge pull request #15248 from ZehMatt/refactor/paint-hierarchy
...
Refactor PaintAddImageAsParent overloads
2021-08-21 21:33:06 +02:00
ζeh Matt
3ab70b200b
Fix #15255 : Wall banner index defaults to 0 instead of null type
2021-08-21 19:24:09 +02:00
spacek531
c49c6ca4a7
Rename animation vars
2021-08-21 19:23:27 +02:00
ζeh Matt
8de2965f13
Merge pull request #15231 from ZehMatt/fix-15169
...
Refactor out capturing of window pointers with GA callbacks
2021-08-21 06:07:35 -07:00
ZehMatt
0e08286d88
Apply review comments
2021-08-21 14:07:27 +03:00
Hielke Morsink
15d3a4a9da
Update more include guards ( #15254 )
2021-08-21 12:55:28 +02:00
Hielke Morsink
dd2467d805
Update include guards
...
- Update from C-style to pragma once
- Add missing include guard to ui.h
2021-08-21 09:43:26 +02:00
Michael Steenbeek
f5935931e3
Port remaining DrawTextWrapped calls with void args to Formatter
2021-08-21 09:42:05 +02:00
OpenRCT2 git bot
d8997cd60f
Merge Localisation/master into OpenRCT2/develop
2021-08-21 04:07:57 +00:00
Hielke Morsink
be4159f9ac
Create std::unique_ptr<ILanguagePack>instead of raw pointer
2021-08-21 00:28:21 +02:00
Hielke Morsink
cef26400cf
Use std::make_unique instead of new for arrays
2021-08-21 00:28:21 +02:00
ZehMatt
8d801d9126
Apply review suggestion
2021-08-21 01:10:36 +03:00
Hielke Morsink
6011478590
Directly use std::unique_ptr prvalues
...
This removes the unnecessary constructor calls and improves flexibility in case of typename changes.
All cases, except for the one in Context.cpp, are temporaries.
2021-08-20 23:38:15 +02:00
Michael Steenbeek
a38ae68f09
Remove Paint.cpp assertions
...
Before the refactor, the assertion read like this:
```
assert(static_cast<uint16_t>(bound_box_length_x) == static_cast<int16_t>(bound_box_length_x));
```
which meant that bound_box_length_x = 0 was valid. The refactor (likely accidentally) changed this, which causes assertions to get hit within 2 seconds after opening on my machine.
According to Duncan, the asserts are no longer necessary at all, so remove them altogether.
2021-08-20 23:27:58 +02:00
ZehMatt
15e32ce5f8
Simplify some arg passing on PaintAddImageAsParent
2021-08-20 23:34:44 +03:00
ZehMatt
77b06cbf9a
Use CoordsXY for haunted_house_bound_box and correct arg passing
2021-08-20 23:34:44 +03:00
ZehMatt
5f49276d53
Use CoordsXY for ferris_wheel_bound_box and correct arg passing
2021-08-20 23:34:44 +03:00
ZehMatt
a5d2939108
Use CoordsXY for rct_crooked_house_bound_box and correct arg passing
2021-08-20 23:34:44 +03:00
ZehMatt
3d90257dde
Simplify more argument passing to PaintAddImageAsParent
2021-08-20 23:34:44 +03:00
ZehMatt
7764bb910f
Use CoordsXYZ instead of anonymous struct in unk_supports_desc
2021-08-20 23:34:44 +03:00
ZehMatt
efa9af4610
Simplify passing args on PaintAddImageAsParent where possible
2021-08-20 23:34:44 +03:00
ZehMatt
7feea62ab3
Remove overload of PaintAddImageAsParent with bbox offset
2021-08-20 23:34:44 +03:00
ZehMatt
6c233ac802
Remove first overload of PaintAddImageAsParent
2021-08-20 23:34:44 +03:00
Michael Steenbeek
c6a7829554
Fix #15245 : Excitement factors are all listed as 0%
2021-08-20 13:05:54 +02:00
Margen67
a371d1ff11
Disallow opening problematic windows in multiplayer
2021-08-19 12:04:49 +02:00
Duncan
223b926f8c
Use std::vector for ride use memory ( #14884 )
...
* Use std::vector for ride use memory
* Use new system for import/export
* Remove legacy field
* Add replay entity size protection to prevent crash
* Increment network version
* Update replays
* Move function to header
* Move constant to RCT12 header as used for both 1 and 2
* Align naming with nsf
2021-08-17 21:29:35 +01:00
Basssiiie
399f6f27b4
Fix #15176 : Incorrect base height in tile inspector for track pieces ( #15233 )
2021-08-17 17:10:33 +01:00
ζeh Matt
4bc5f70581
Minor refactor work around the painting ( #15226 )
...
* Remove unused variables and drop packing of paint structs
* Move PAINT_QUADRANT_FLAGS out of the header
* Rename enum and variable to SortFlags
* Rename variable and document the sorting
* Apply review
2021-08-17 09:32:58 +01:00
ZehMatt
72a6373520
Guard code with DISABLE_NETWORK
2021-08-17 11:30:13 +03:00
ZehMatt
b3bb2f5d80
Refactor NetworkBase to use the System base class
2021-08-17 07:22:04 +03:00
ZehMatt
1cfc933a59
Introduce a base class for system models
2021-08-17 06:58:42 +03:00
ZehMatt
4ece997ff3
Remove unused function network_close
2021-08-17 06:33:50 +03:00
ZehMatt
0960413927
Remove unused function network_send_map
2021-08-17 06:31:12 +03:00
ZehMatt
b8a81ae1c7
Remove unused declarations
2021-08-17 06:30:16 +03:00