duncanspumpkin
927c8a4e85
Create ScreenCoords struct. Refactor 3d_to_2d again
2019-08-19 20:04:58 +01:00
duncanspumpkin
c6452095ca
Refactor tile_element_height to use CoordsXY
2019-08-19 20:04:57 +01:00
Matt
cc6321048f
Refactor window_invalidate to use rct_window::Invalidate
2019-08-11 17:22:00 +02:00
Matt
2053ecb688
Refactor window_scroll_to_viewport to use rct_window::ScrollToViewport
2019-08-11 17:22:00 +02:00
Matt
b046d45c01
Refactor window_set_location to use rct_window::SetLocation
2019-08-11 17:21:56 +02:00
Ted John
9954f0b725
Add nullptr checks for more instances of get_ride ( #9819 )
2019-08-09 14:20:59 +01:00
Ted John
ab7b17fc4e
Add nullptr checks for get_ride in libopenrct2 ( #9788 )
2019-08-08 22:58:56 +01:00
Ted John
cbb1bf9289
Fix #9752 : window_close from ride construction window causes a crash
...
Re-obtain iterator after calling window close event as close event may open / close other windows.
2019-08-07 23:20:50 +01:00
Ted John
cd4eb86a7c
Merge pull request #9725 from IntelOrca/refactor/ride-manager
...
Refactor ride list
2019-08-07 21:03:17 +01:00
Matt
4f6dbd6496
Fix #9727 : Crash when multiple windows are closed during close events
2019-08-06 17:08:10 +02:00
Ted John
a863c7ae50
Remove rest of FOR_ALL_RIDES instances
2019-08-04 16:44:17 +01:00
Ted John
e23638548a
Reduce use of MAX_RIDES and RIDE_TYPE_NULL
2019-08-04 16:44:17 +01:00
Ted John
a3fe00f0a3
Refactor ride list to a manager with iterator
2019-08-04 16:43:50 +01:00
Ted John
d28799ef18
Remove user strings
2019-07-29 20:01:37 +01:00
Ted John
40d49b93d3
Do not use user strings for peep names
2019-07-29 19:18:16 +01:00
Ted John
6fff2079f9
Refactor ride name to dynamic args and std::string
2019-07-29 19:18:16 +01:00
Ted John
0b4d989a67
Rename get_banner to GetBanner
2019-07-26 17:24:19 +01:00
Ted John
5c07c53faf
Refactor get banner
2019-07-25 22:21:19 +01:00
Matt
3395079737
Remove NUM_SPRITE_LISTS macro and replace with SPRITE_LIST_COUNT for consistency
2019-07-24 17:53:54 +02:00
Duncan
ab5f5b20cd
Use enum class for RCT2_SOUND ( #9618 )
...
* Use enum class for RCT2_SOUND
* Fix formatting. Fix mistaken declaration.
* Change name of enum to SoundId
* Fix clang format
2019-07-22 19:02:45 +01:00
Ted John
5733d666b3
Do not store park name as a user string
2019-07-21 11:33:15 +02:00
FredFucks
d44e89d9a4
Fix Chinese fonts on Linux with "WenQuanYi Micro Hei" ( #9584 )
2019-07-17 11:22:38 +02:00
ζeh Matt
a7f8960151
Fix #9498 : Only close the most recent window when using the hotkey ( #9504 )
2019-07-01 22:59:31 +02:00
ζeh Matt
e149722a15
Fix #9467 : Crash when windows create new window when being closed ( #9470 )
2019-06-27 22:28:07 +02:00
duncanspumpkin
b896f07687
Add PeepPickupAction
...
Move Guest and Staff pickup to the new game action. Rework the game
action so that only one game action is required for the two game
commands. Remove the final game command with a callback.
2019-06-20 19:34:02 +01:00
Hielke Morsink
6b7fee86bb
Don't clear the screen to black for giant screenshots
...
When certain viewport flags were set (underground view, hide base land,
hide vetical faces, clip view), the viewport would always be cleared,
including for giant screenshots.
2019-06-16 16:42:21 +02:00
Hielke Morsink
e2d7b2cf03
Use new setting in screenshot command too
2019-06-09 11:03:01 +02:00
Hielke Morsink
5418eb6e34
Add transparency setting to options window
2019-06-09 11:03:01 +02:00
Hielke Morsink
bffc012d16
Implement #1260 : --transparent switch for screenshot command
2019-06-09 11:03:00 +02:00
Hielke Morsink
f5ac98c1e2
Early out when context creation fails
2019-06-09 11:03:00 +02:00
Matt
f98d027a14
Fix #9377 : accumulate a list of windows to close before actual closing
2019-06-06 12:21:46 +02:00
Aaron van Geffen
f1ac847fce
Merge pull request #9222 from IntelOrca/implement/485-ghost-train-simulation
...
Implement #485 : ghost train simulation
2019-06-04 20:24:16 +02:00
Duncan
06c666c298
Merge pull request #9358 from ZehMatt/undo-fuckup1
...
Remove useless log_info
2019-06-04 18:45:34 +01:00
Duncan
f44d29f861
Merge pull request #9368 from ZehMatt/fix-9365
...
Fix #9365 : Crash when bringing window to front
2019-06-04 18:45:22 +01:00
Matt
d6975a8f23
Fix #9365 : Crash when bringing window to front
2019-06-04 07:02:55 +02:00
Hielke Morsink
4dea507e50
Fix #9360 : sticky windows can be closed
2019-06-03 22:49:45 +02:00
Matt
af65811f50
Remove useless log_info
2019-06-03 18:59:23 +02:00
ζeh Matt
cf9e5e14a6
Merge pull request #9330 from ZehMatt/window-refactor
...
Refactor window storage to use std::list instead of std::vector
2019-06-01 21:22:02 +02:00
aw20368
3ee6be0dbf
Fix #9288 : Replace repeated 3d to 2d functions ( #9301 )
...
Replaced duplicate 3d to 2d code with translate_3d_to_2d_with_z(...).
2019-05-30 22:41:53 +02:00
Matt
951f5009ef
Refactor window storage to use std::list instead of std::vector
2019-05-29 19:32:18 +02:00
Ted John
fec6d660c6
Remove obsolete configs:
...
- no crashes
- test unfinished track
2019-05-28 16:50:08 +01:00
Ted John
15cb3e1889
Remove unnecessary new line characters from log calls ( #9237 )
2019-05-12 13:48:56 +02:00
ζeh Matt
c8f822ea70
Gamestate snapshots ( #8819 )
...
* Add initial interface.
* Implement move operator in MemoryStream
* Add pod array serialisation traits.
* Add push_back with move semantics to CircularBuffer
* Initial implementation of GameStateSnapshots
* Add GameStateSnapshots to Context.
* Add mp_desync console command.
* Compare sprite data and fill change list.
* Minor changes.
* Proof of concept.
* Calculate offset instead of using offsetof
* Implement game state difference detection
* Update mp_desync console command.
* Fix identification of sprite remove/add.
* Fix crash when only one peep in park when using mp_desync
* Output state differences into user directory desync folder.
* Add desync debugging as an option.
* Add information to network status when a desync report was created.
* Cast to proper type for %llu.
* Update xcode project
* Add more information to the diffed data.
* Remove client-only relevant fields.
* Cleanup.
* Add better name output for misc sprites
* Add srand0 and tick information to the output
* Bump up network version
* Cleanup
* Set desync_debugging to false as default
* Apply suggestions
2019-05-11 21:31:34 +02:00
Ted John
7074d6f3ae
Apply review suggestions
2019-05-11 13:57:18 +01:00
Tom Lankhorst
bbd69496b4
Sanitize screenshot path
2019-05-11 13:54:16 +01:00
Filip Gawin
6833da77e3
Simplify boolean expresions
2019-05-10 22:00:38 +02:00
Ted John
0d0479f9b1
Merge pull request #8558 from richard-fine/feature/peep-inspector
...
Peep debug tab
2019-05-06 20:29:29 +01:00
Richard Fine
c4a449f47d
Add new debugging tab to the Guest window
...
Add a new tab to the Guest window which we can use to display debug information and tools for guests. At the moment it's blank and always visible; next step is to make it only show up when debugging tools are enabled.
2019-05-04 14:08:37 +00:00
ζeh Matt
cd8c67ddac
Implement SetCheatAction. ( #8990 )
...
* Implement SetCheatAction.
* Bump up network version
2019-05-04 15:28:38 +02:00
Ted John
e84631c273
Fix #9204 : Making screenshots from command-line is broken ( #9206 )
2019-05-04 13:22:01 +00:00