1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00
Commit Graph

15345 Commits

Author SHA1 Message Date
Jimver
bda0126539 Part of #12162: Use CoordsXY on staff_is_patrol_area_set 2020-07-09 14:20:37 +02:00
Jimver
e4c4c611eb Part of #12162: Use CoordsXY on staff_set_patrol_area 2020-07-09 14:17:41 +02:00
Jimver
eb753261a1 Part of #12162: Use CoordsXY on staff_toggle_patrol_area 2020-07-09 14:12:32 +02:00
frutiemax
4aa7dec84f Part of #12096: Use ScreenRect on gfx_fill_rect in Widget.cpp (#12169) 2020-07-08 23:06:46 -03:00
Tulio Leao
2d169bc5a2 Merge pull request #12158 from tupaschoal/ratings-coords
Generic RideRatingCalculationData improvements
2020-07-08 15:51:38 -03:00
Jim
0248621502 Increase handyman randomness in queue (#12145)
* Increase randomness when handyman is on queue path

* Add myself to contributors

* Refactor hex variable probabilities

* Add check if queue is connected to a ride

* Update changelog

* Bump network version

* Update replays

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2020-07-08 19:48:08 +01:00
Tulio Leao
bd9cf4ceaa Rename RideRatingCalculationData::NumOf.. to AmounfOf 2020-07-08 14:15:33 -03:00
Tulio Leao
d2d48cf0ac Use TitleCase on RideRatingCalculationData 2020-07-08 14:10:43 -03:00
frutiemax
bf2b8073cb Part of #12096: ScreenRect for gfx_fill_rect in libopenrct2 (#12109) 2020-07-08 14:07:26 -03:00
Tulio Leao
2f32a094ee Use CoordsXYZ for RideRatingCalculationData::proximity_start 2020-07-08 13:41:40 -03:00
Tulio Leao
d662de202f Use CoordsXYZ for RideRatingCalculationData::proximity 2020-07-08 13:36:54 -03:00
Tulio Leao
2b91d432f3 Use CoordsXYE for ride_ratings_score_close_proximity_loops_helper 2020-07-08 13:18:04 -03:00
frutiemax
280a21fa30 Fix #12095: Use ScreenRect on gfx_set_dirty_blocks (#12106) 2020-07-08 13:16:24 -03:00
Tulio Leao
b69d48c3ed Merge pull request #12154 from tupaschoal/coords-text
Use only ScreenCoordsXY for Text.cpp
2020-07-08 12:30:21 -03:00
Tulio Leao
d95a0268ef Merge pull request #11909 from Gymnasiast/fix/more-constants
Use more constants/specific types
2020-07-08 10:18:11 -03:00
Tulio Leao
59236443ba Make StaticLayout::Draw use ScreenCoordsXY 2020-07-08 10:15:02 -03:00
Tulio Leao
dabde880cd Make DrawTextEllipsisedCompat use ScreenCoordsXY 2020-07-08 10:13:03 -03:00
Tulio Leao
16147dec64 Make DrawTextCompat use ScreenCoordsXY 2020-07-08 10:13:03 -03:00
Tulio Leao
69b3c97537 Make DrawText use ScreenCoordsXY 2020-07-08 10:13:03 -03:00
Tulio Leao
2ee1a9d9db Use TitleCase on StaticLayout (#12155) 2020-07-08 09:43:23 -03:00
Gymnasiast
7cc510f6b7 Increment network version 2020-07-07 21:14:16 +02:00
Gymnasiast
bf5ffdf497 Clean up favourite ride 2020-07-07 21:13:42 +02:00
Gymnasiast
e8d6383f57 Clean up voucher arguments 2020-07-07 21:13:40 +02:00
Gymnasiast
db764445ed Clean up photo refs 2020-07-07 21:13:10 +02:00
Gymnasiast
65fa08ef35 Clean up GuestHeadingToRideId 2020-07-07 21:13:10 +02:00
Gymnasiast
0dd5b3bbda Clean up current_ride 2020-07-07 21:13:09 +02:00
Michał Janiszewski
8c88f3c6c0 Fix potential null derference (#12151)
The error is reported by launchpad.net from its PPA builds
2020-07-07 19:57:32 +01:00
Duncan
8c1aa43ef4 Add TryGetEntity to fetch entity objects easily (#11979)
Implement TryGetEntity and use it
2020-07-07 13:13:22 -03:00
Duncan
94b3598102 Tiny GetEntity Refactor (#12124)
* Use default template parameter instead of specialising

* Fix null deref issues
2020-07-06 22:02:25 +01:00
Hudson Oliveira
8b5f3b58c5 Part of #9473: Create Vehicle::UpdateMotionCollisionDetection (#11949)
Converted from vehicle_update_motion_collision_detection
2020-07-06 13:57:09 -03:00
Michael Steenbeek
f7b42a0254 Merge pull request #11980 from duncanspumpkin/CreateSprite8
SpriteList enum class
2020-07-06 15:21:16 +02:00
Thamara Andrade
8ce799a72e Close #12118: Prefer foward declaration of *Coords* in headers (#12142)
* Removing unnecessary world/Location includes in headers
* Prefer foward declaration of *Coords* in header files
Closes #12118
2020-07-06 10:10:39 -03:00
Tulio Leao
f725fff2da Clarify CoordsRange-derived interface methods (#12127) 2020-07-06 14:42:11 +02:00
Aaron van Geffen
8fc8a435cb Fix #12123: Long server descriptions are not cut off properly (#12129) 2020-07-05 09:18:23 +02:00
duncanspumpkin
57d2877e67 Provide accesor function for get entity list count 2020-07-05 07:28:38 +01:00
annoyingdroid
ad86f7b023 Part of #12098: Use ScreenRect on gfx_filter_rect (#12120)
* Added a gfx_filter_rect function using ScreenRect
2020-07-04 15:16:09 -03:00
frutiemax
bee0b4b82d Part of #11159: Optimize util_zlib_deflate return (#12111) 2020-07-04 09:21:50 -03:00
duncanspumpkin
64ab101b4e Fix formatting and comment 2020-07-04 07:38:11 +01:00
duncanspumpkin
e51bbeed23 Convert SPRITE_LIST to an enum class 2020-07-04 07:38:11 +01:00
duncanspumpkin
2d28ca3b28 Remove broken check_for_spatial_index_cycles
There were a number of issues with this function. It was calling index_is_in_list with invalid SPRITE_LISTs. The spatial index is no longer needed to be correct on save/load as it is rebuilt so that it is kept in order.
2020-07-04 07:38:11 +01:00
DrunkBlood
55f0f34fe0 Close #12101: gfx_draw_dashed_line to use ScreenLine (#12116) 2020-07-03 18:05:18 -03:00
frutiemax
d969e93ea1 Fix #12112: Move TrackColourPreviews to RideTypeDescriptors (#12114) 2020-07-03 22:15:11 +02:00
Tulio Leao
3ba505e5bd Merge pull request #11956 from hdpoliveira/loc_6DB38B
Simplify code related to V-angle and bank
2020-07-03 15:16:08 -03:00
Tulio Leao
99b39f04e7 Do not try to force dimensions of a rectangle (#12115) 2020-07-03 09:28:30 +02:00
frutiemax
4661262572 Fix #12085: Use ScreenCoordsXY on clip_drawpixelinfo (#12105) 2020-07-02 14:06:28 -03:00
frutiemax
67a8d833ea Part of #11159: ImageImporter::ImportResult uses std::vector (#12076) 2020-07-02 14:04:49 -03:00
annoyingdroid
53e8816881 Close #12086: Use ScreenCoordsXY on gfx_draw_pixel (#12104) 2020-07-02 12:10:37 -03:00
frutiemax
26ae2dbf04 Part of #11437: Move PlatformFileExists to Platform2.h (#12077) 2020-07-02 12:03:31 -03:00
frutiemax
cb4eba701f Part of #11159: Remove malloc and free in openrct2-win.cpp (#12075) 2020-07-02 12:00:49 -03:00
annoyingdroid
5056872676 Close #12087: Use ScreenCoordsXY on gfx_filter_pixel (#12102) 2020-07-02 11:08:46 -03:00