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
Tulio Leao
c8e844d100
Add changelog for #12123 fix
2020-07-05 21:31:58 -03: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
Michael Steenbeek
fdef47dc86
Re-add #12093 to changelog
2020-07-02 23:20:34 +02:00
Casey Johnson
8f77bd94e1
Part of #9542 : CI builds only start after successful lint-commit and check-code-formatting jobs ( #12108 )
...
* delete 8 jobs while testing & re-add needs/if clauses to windows build
* add back removed jobs with new needs/if clauses
2020-07-02 21:22:40 +01: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
Michael Steenbeek
08f71f79d4
Remove #12093 from changelog, add #12090
2020-07-02 14:41:34 +02:00
Duncan
cd716ca4aa
Fix #12093 . Incorrect position and animation of staff tab. ( #12094 )
...
Mistake made when refactoring transposed two digits. Additional mistake made when removing a variable that was unused that changed the memory layout of the window. This meant that a part of the code that accessed a different variable in a union fetched the wrong memory. This was a mistake ultimately made during implementation.
2020-07-02 09:19:19 -03:00
Michael Steenbeek
920115448e
Merge pull request #12088 from tupaschoal/coords-extract-reuse
...
Generic coords structs for reusability
2020-07-02 12:07:10 +02:00
Casey Johnson
2e0f0d3821
Fix #12062 : Add chain lift to Flying Coaster pieces when inverted ( #12091 )
2020-07-02 10:40:59 +02:00
Casey Johnson
fc43494d74
Feature: Add Boosters to Wooden Roller Coaster ( #12090 )
2020-07-02 01:52:33 +02:00
OpenRCT2 git bot
d33af08a22
Merge Localisation/master into OpenRCT2/develop.
2020-07-01 04:03:23 +00:00
Tulio Leao
b5195f77c4
Reuse Rectangle definitions for ScreenRect and MapRange
2020-06-30 09:44:28 -03:00
Tulio Leao
a86a60cbf5
Extract ScreenRect from Graph for reusability
2020-06-30 09:32:22 -03:00
Tulio Leao
5ce65eb7dc
Create ScreenLine struct
2020-06-30 09:26:42 -03:00
Tulio Leao
70e245a1c3
Add Coords constructor to Map and CoordsRange
2020-06-30 09:12:14 -03:00
Tulio Leao
701f7f6d67
Extract base CoordsRange class from MapRange
...
Enforce MapRange to be rectangle shaped
2020-06-30 09:00:20 -03:00
Tulio Leao
c472a763a6
Merge pull request #12084 from Gymnasiast/fix/currency
...
Small currency fixes
2020-06-30 07:55:25 -03:00
Gymnasiast
8b6cb7e943
Add config enum name for Forint
2020-06-30 11:27:01 +02:00
Gymnasiast
fe402f8bc4
Fix name of 'Deutsche mark'
2020-06-30 11:24:42 +02:00
Michael Steenbeek
33e86ce0d8
Merge pull request #12016 from tupaschoal/screen-coords-string
...
Make interfaces use ScreenCoordsXY instead of x-y
2020-06-30 08:37:14 +02:00
Duncan
c723a1a314
Fix #12079 : incorrect drawing of attached paint structs ( #12082 )
...
* Fix #12079 : incorrect drawing of attached paint structs
The issue is caused by the paint_struct x and y coordinates being incorrectly marked as unsigned. Unfortunately they cannot easily be converted without careful rework. Therefore this is a stop gap until the type is changed to preferably a ScreenCoords.
2020-06-29 19:13:23 -03:00
finicu212
ec33551b24
Fix #12021 : Tie coords on gfx_draw_sprite_raw_masked_software ( #12080 )
...
Make gfx_draw_sprite_raw_masked_software use ScreenCoordsXY object
2020-06-29 18:38:03 -03:00
Duncan
0f106da7eb
Fix #12065 again. Fixed track design previews with diagonals ( #12074 )
...
Unsure when mistake was made but there was a variety of issues with this section of code. The rotation of the entrance was meant to be relative to the track design rotation not the last track pieces rotation. This caused issues for tracks that were not complete circuits. In addition there was a mistake for diagonal track pieces where the location of the end piece was not incremented this caused the diagonal piece to act as though it didn't exist breaking the preview.
2020-06-29 10:58:31 -03:00
Tulio Leao
b6f252f68e
Make gfx_draw_sprite_raw_masked use ScreenCoordsXY
2020-06-29 10:29:05 -03:00
Tulio Leao
b0c10f979b
Make gfx_draw_glyph use ScreenCoordsXY
2020-06-29 10:26:35 -03:00
Tulio Leao
79d007c780
Make ttf_draw_string use ScreenCoordsXY
2020-06-29 10:25:49 -03:00
Tulio Leao
592b54d354
Make gfx_draw_string_with_y_offsets use ScreenCoordsXY
2020-06-29 10:25:49 -03:00
Tulio Leao
b7dc5057e5
Make gfx_draw_string_centred_wrapped_partial use ScreenCoordsXY
2020-06-29 10:25:44 -03:00
Tulio Leao
1717f2a9a3
Make draw_string_centred_raw use ScreenCoordsXY
2020-06-29 10:23:54 -03:00
Tulio Leao
a0ed2c181e
Make gfx_draw_string_left_centred use ScreenCoordsXY
2020-06-29 10:23:54 -03:00
OpenRCT2 git bot
972c28619e
Merge Localisation/master into OpenRCT2/develop.
2020-06-29 04:02:44 +00:00
frutiemax
5ae592ec79
Part of #11437 : Move GetDateLocal and GetTimeLocal in Platform2.h
2020-06-28 21:46:14 +02:00