Commit Graph

2997 Commits

Author SHA1 Message Date
Ted John d1cbf998a0 Do not return shared_ptr for LocalisationService
GetLocalisationService is currently used a lot, so remove overhead of shared_ptr copy.
2018-05-11 20:39:00 +01:00
Ted John 7075f6ca25 Use correct language for scan-objects 2018-05-11 20:39:00 +01:00
Ted John 35df72e61f Remove use of gCurrentLanguage 2018-05-11 20:39:00 +01:00
Ted John 7b28078da2 Remove use of gUseTrueTypeFont 2018-05-11 20:37:48 +01:00
Ted John 8681b4fac9 [wip] Create new localisation service 2018-05-11 20:37:48 +01:00
Ted John 466c465d44 Use unique_ptr and shared_ptr for IDrawingEngine 2018-05-11 20:37:48 +01:00
Ted John 7b610fd3c0 Use shared_ptr more for UiContext in relation to DrawingEngine 2018-05-11 20:37:48 +01:00
Ted John 7dc170ef85 Use shared_ptr for long-life objects
Use unique_ptr and shared_ptr for IContext, IPlatformEnvironment, IUiContext, and IAudioContext.
2018-05-11 20:37:48 +01:00
Aaron van Geffen 56b9f5ff16 Removed unused string from audio options. 2018-05-11 19:39:47 +02:00
Tomas Dittmann cb162edcfe Fix #7331: Invention list crashes upon removing previously-enabled ride/stall entries 2018-05-11 13:28:56 +02:00
Michael Steenbeek 83b76b37b0 Bump network version, update changelog 2018-05-11 11:18:52 +02:00
Richard Jenkins 41f0b181bf Display flat rides correctly in previews 2018-05-10 20:54:53 +02:00
rwjuk 066980a9d4 Initial implementation of track saving for flat rides 2018-05-10 20:54:53 +02:00
Michał Janiszewski d15d5c6d6c
Merge pull request #7501 from OpenRCT2/android-fix-zip
Fix Android Zip changes
2018-05-10 09:43:41 +02:00
Michael Steenbeek 83b4bcb068
Prepare tunnel door support 2018-05-10 09:39:33 +02:00
Michał Janiszewski d965553cae Fix Android Zip changes 2018-05-09 15:59:05 +02:00
Duncan 7b8507cb22
Merge pull request #7404 from OpenRCT2/peep
Peep Refactor
2018-05-08 20:22:39 +01:00
duncanspumpkin 27bed3522c Fix desync issue due to mistaken refactor 2018-05-08 19:21:15 +01:00
duncanspumpkin 6f21614a07 Convert heuristic search to TileCoords 2018-05-08 18:09:45 +01:00
duncanspumpkin 213abaf6e8 Convert path is thin to TileCoords 2018-05-08 17:50:43 +01:00
duncanspumpkin fc39c6c92c Revert incorrect comment find and replace 2018-05-08 17:45:40 +01:00
Michael Steenbeek 907d318e1c
Make Ride Groups more C++-like 2018-05-07 20:18:06 +02:00
Ted John 0df569f0e2
Merge pull request #7492 from IntelOrca/refactor/ziparchive
Improve IZipArchive so that it is more C++
2018-05-07 17:21:20 +01:00
martip23 f579c277c4 Iterate and check for each element's height for cover. Fixes #7405 2018-05-07 01:03:54 +02:00
duncanspumpkin 458b3710c7 Fix pathing getting the wrong tile 2018-05-06 21:34:48 +01:00
Ted John 2ea857a10e Improve IZipArchive so that it is more C++ 2018-05-06 17:46:45 +01:00
q-- ca6bf696b1 Fix incorrect comment for peep inital energy (#7479)
Also use % 64 instead of & 0x3F for added clarity.

Removed the 63 + 65 = 128 from the comment since that's fairly obvious
if we're using decimal instead of hexadecimal numbers.

Closes #7384
2018-05-05 11:42:47 +01:00
blackhand1001 a23f1e4b2c Add behavior for when a scenario has both less and more intense toggled on (#7401) 2018-05-05 11:42:46 +01:00
Hielke Morsink 64932cbacf Use TileCoordXYZ for location argument 2018-05-05 11:42:45 +01:00
Hielke Morsink 278f67e627 Consistent coords/tile definition order 2018-05-05 11:42:44 +01:00
Hielke Morsink afac7f6557 Make more global functions part of rct_peep 2018-05-05 11:42:43 +01:00
Hielke Morsink 1590bc8e6f Remove deprecated function
peep_auto_position has been replaced with staff_autoposition_new_staff_member.
This also fixes a comment and applies a type for an enum that uses the sign bit.
2018-05-05 11:42:42 +01:00
duncanspumpkin bdee0cac7d Convert pathfindgoal to TileCoords 2018-05-05 11:42:39 +01:00
duncanspumpkin 6efe2ab1c7 Further Tile conversion. Actually make it compile 2018-05-05 11:42:38 +01:00
duncanspumpkin 304a8bc035 Further Tile conversion 2018-05-05 11:42:35 +01:00
duncanspumpkin fcb66b7449 Start refactoring pathfinding to use tileCoords 2018-05-05 11:42:34 +01:00
duncanspumpkin 16ec3a1cdd Remove duplicate nausea 2018-05-05 11:42:29 +01:00
duncanspumpkin ddbcae801e Use correct remove function 2018-05-05 11:42:27 +01:00
duncanspumpkin e5d4c39d4a Label offsets. Fix travis errors 2018-05-05 11:42:26 +01:00
Hielke Morsink 8987d2806a Make peep_update_fixing part of rct_peep
Some of those functions only edit the ride that gets fixed or inspected. It may be better to eventually move this logic to the Ride class.
2018-05-05 11:42:25 +01:00
Hielke Morsink 78c214c6dc Use loop for bit twiddling for guest names
This makes one slight change. Previously one bit was set twice (1<<10), while another bit was disgarded completely (1 << 12). The new behaviour covers all 14 bits..
2018-05-05 11:42:24 +01:00
Hielke Morsink 2e1045ce22 Remove return values and turn sint32 into bool where applicable 2018-05-05 11:42:23 +01:00
Hielke Morsink b7b8a1c01f Name 'using bin' sub states and simplify code slightly 2018-05-05 11:42:21 +01:00
Hielke Morsink 2203d662c9 Add bench and bin usage to the peep class 2018-05-05 11:42:20 +01:00
duncanspumpkin 4c3fd31002 Move guest functions out of peep 2018-05-05 11:42:17 +01:00
duncanspumpkin 82884396f4 Update UpdateSpriteType 2018-05-05 11:42:16 +01:00
duncanspumpkin 5d7da79702 Label next_var_29. Add accessor functions.
Removed unused flag (1<<4). Not set in any save. Possibly left over from RCT1
2018-05-05 11:42:15 +01:00
Hielke Morsink 806f4452f8 Move guest and staff functions from peep.cpp 2018-05-05 11:41:31 +01:00
Hielke Morsink 9e47512d79 Sort peep functions by type (general, guest and staff) 2018-05-05 11:35:57 +01:00
duncanspumpkin 80e3b736d7 Fix travis errors 2018-05-05 11:35:56 +01:00