29775 Commits
Author SHA1 Message Date
Michael Steenbeek 907d318e1c Make Ride Groups more C++-like 2018-05-07 20:18:06 +02:00
deurklink 0d332cdf68 Implement #7459: Allow opening and closing of parks that use no mone 2018-05-07 19:48:47 +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
Hielke Morsink 3c8a2ca55d Merge pull request #7491 from martip23/CoveredRideHeightFix
Iterate and check for each element's height for cover. Fixes #7405
2018-05-07 13:44:35 +02:00
OpenRCT2 git bot 881f54b653 Merge Localisation/master into OpenRCT2/develop. 2018-05-07 04:00:43 +00:00
martip23 eaae453352 Updated changelog 2018-05-07 01:06:37 +02:00
martip23 aca3f1888e Add to contributors 2018-05-07 01:06:37 +02: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
Michał Janiszewski 5d102fd40b Sync clang-format with OpenLoco
- The formatting properties for JavaScript and ObjectiveC have been removed, since "Language: Cpp" is set.
- Remove CommentPragmas - its value doen't apply to our coding style.
- ForEachMacros have been replaced with entries for our own foreach loops.
- Includes age grouped together (unless there's a comment inbetween), with the 'main' include at the top, then local includes "", and finally system includes <>, with an empty line inbetween each group.
- Disable bin-packing of function arguments
- NamespaceIndentation set to 'None'.
- KeepEmptyLinesAtTheStartOfBlocks set to 'false'.
- IndentWrappedFunctionNames set to 'true'.
- Never allow short functions to be on a single line, and remove unnecessary rule for tab width since we don't use tabs.

These changes will need to be synced with OpenLoco.
2018-05-05 14:46:35 +02:00
Michael Steenbeek ffa73981ac Copy CoordsDirectionDelta to Testpaint 2018-05-05 11:42:49 +01:00
Michael Steenbeek eb0a73cf96 Fix TileDirectionDelta definition in TestPaint 2018-05-05 11:42:48 +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
Aaron van Geffen 135154571c Update Xcode project for Guest and GuestPathfinding sources. 2018-05-05 11:42:41 +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
Aaron van Geffen d15c782ca7 Remove null sources from Xcode project. 2018-05-05 11:42:30 +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
duncanspumpkin 2488cb9c3a Add MoveTo function 2018-05-05 11:35:55 +01:00
duncanspumpkin a94fb2fa2e Use Invalidate 2018-05-05 11:35:54 +01:00
duncanspumpkin 85dbd42231 Fix functions after the move 2018-05-05 11:35:51 +01:00
duncanspumpkin 65dcacb9ea Move pathfinding functions to their own file 2018-05-05 11:30:22 +01:00
duncanspumpkin 865e0875d2 Make it compile after the move 2018-05-05 11:24:21 +01:00
duncanspumpkin f89b0927f6 Move Update state functions to correct files 2018-05-05 11:16:20 +01:00
Hielke Morsink 6e02d6af4c Make peep_has_food, has_item and has_drink member functions 2018-05-05 11:13:22 +01:00
duncanspumpkin a70301c114 Make it compile 2018-05-05 11:13:20 +01:00
duncanspumpkin 48acda4316 Fix functions after move 2018-05-05 11:13:19 +01:00
duncanspumpkin 40a88dc178 Move staff functions to staff.cpp 2018-05-05 11:08:20 +01:00
duncanspumpkin 8d37502c7a Further use of SetState 2018-05-05 11:08:17 +01:00