Commit graph

13495 commits

Author SHA1 Message Date
Ted John
64f129c616 Fix RCT2 builds 2017-12-02 18:03:54 +00:00
Ted John
6ef5154b02 Fix #6761: An assertion failed - Invalid Font index 65675
Special font bases were not converted in font_sprite_get_codepoint_width.
Assert converted to safe warning.
2017-12-02 11:47:24 +00:00
Michał Janiszewski
0920e58f98 Remove ADVERTISE_STATUS_ prefix 2017-12-02 09:03:59 +01:00
Michał Janiszewski
8e57c7d05d Make ADVERTISE_STATUS enum class 2017-12-02 09:03:59 +01:00
Michał Janiszewski
053a2540f3 Fix building with HTTP disabled, but network enabled 2017-12-02 09:03:59 +01:00
Ted John
11fac1bbf5 Change back to current directory structure 2017-12-01 21:09:52 +00:00
Michael Steenbeek
8a62229a5b Fix build on Xcode 2017-12-01 21:09:52 +00:00
Michael Steenbeek
3dfb4214f3 Fix Xcode project 2017-12-01 21:09:52 +00:00
Ted John
205fdaefa7 Split up Platform2 by OS 2017-12-01 21:09:52 +00:00
Ted John
bbc389d18e Fix remaining code issues 2017-12-01 21:09:52 +00:00
Ted John
ea356cd2b9 Fix mingw 2017-12-01 21:09:52 +00:00
Ted John
679aae801d Fix GetFolderPath for Windows 2017-12-01 21:09:52 +00:00
Ted John
66a6aa95f6 Redirect platform_get_user_directory to IPlatformEnvironment
- Remove old code for getting user directory, redirect to IPlatformEnvironment.
- Fix config loading so that it uses path straight from IPlatformEnvironment.
- Add more special folder implementation in Platform2.
2017-12-01 21:09:52 +00:00
Ted John
dcb92a466d Add new base path for user data and config
Refactor more path resolution to Platform2.cpp
2017-12-01 21:09:45 +00:00
Ted John
f52544d607 Fix #6739: Park name isn't displayed
Fix wrong type, down cast introduced by mistake in 585fc1afce
2017-12-01 20:25:41 +00:00
Ted John
1f456d3e8e
Merge pull request #6638 from janisozaur/font-guard
Guard access to font
2017-12-01 20:13:58 +00:00
Stefan Winkler
516c5737be Set branch/sha1 defines only for specific files 2017-12-01 21:05:44 +01:00
Michael Steenbeek
63f7820b25 Fix #1185: Close button colour of prompt windows does not match 2017-12-01 17:36:30 +01:00
Michael Steenbeek
57a2612365
Fix scenery group assignment race conditions
When adding entries to scenery groups by hand, like we do for a lot of ToonTowner's stuff, it currently tries to get the loaded scenery group. If this happens not to be loaded at that time, this will fail.
Instead, hardcode the headers - that's how object .DATs do this anyway.
2017-12-01 11:54:25 +01:00
Michael Steenbeek
7b373e23ac Fix #6756: Raise maximum amount of scenery items per tab to 1024 2017-12-01 10:02:33 +01:00
OpenRCT2 git bot
f4b6b728e3 Merge Localisation/master into OpenRCT2/develop. 2017-12-01 04:00:39 +00:00
Aaron van Geffen
1747253c42 Do not accept implicit font substitutions from FontConfig.
FontConfig implicitly falls back to any default font it is configured to handle.
In our implementation, this cannot account for supported character sets, leading
to unrendered characters (tofu) when trying to render e.g. CJK characters using a
Western (sans-)serif font. We therefore ignore substitutions FontConfig provides,
and instead rely on exact matches on the fonts predefined for each font family.
2017-11-30 23:35:02 +01:00
Michael Steenbeek
3eb0ffbc53
Add #5838 to changelog
[ci skip]
2017-11-30 23:28:17 +01:00
Tomas Dittmann
1332004640 switch returnvalue from 0 to false.
switch const variable to `#define`
2017-11-30 23:26:15 +01:00
Tomas Dittmann
60b457d13f Prevent writing to invalid memory.
Switch magic number to constant `maxTrackElements`.
If the number of TrackElements becomes equal to maxTrackElements, cleanup the data and abort the export.
2017-11-30 23:26:15 +01:00
Michael Steenbeek
b0aaf13cec Clean up and future-proof peep spawn import 2017-11-30 23:08:59 +01:00
Ted John
47a68e9e90 Add constant for maximum zoom level 2017-11-30 21:21:38 +00:00
OpenRCT2 git bot
5d5c64acbf Merge Localisation/master into OpenRCT2/develop. 2017-11-30 04:00:45 +00:00
Michael Steenbeek
251dad113c Make ride_entry_get_first_non_null_ride_type() take a const ride entry 2017-11-29 12:15:33 +01:00
Michael Steenbeek
e568dcabff
Adding some missing entries to changelog 2017-11-29 12:09:05 +01:00
Michael Steenbeek
7feb0f8f7e Fix #4760: Correct guest entry points on loading scenario 2017-11-29 09:10:09 +01:00
Michael Steenbeek
32f91e3e45 Draw friction wheels instead of chain on LRC station 2017-11-29 09:08:27 +01:00
OpenRCT2 git bot
743c79c169 Merge Localisation/master into OpenRCT2/develop. 2017-11-29 04:00:46 +00:00
Michael Steenbeek
677815ddc8
Update update info in readme 2017-11-28 22:38:32 +01:00
Michael Steenbeek
4430496d03
Bump minimum Windows version to 7, remove copypasta from OpenTTD 2017-11-28 22:37:53 +01:00
Michael Steenbeek
3f8556c85a Fix #6294: Refactor Editor::SelectedObjects 2017-11-28 13:38:54 +01:00
OpenRCT2 git bot
66aa25da81 Merge Localisation/master into OpenRCT2/develop. 2017-11-28 04:01:14 +00:00
Michał Janiszewski
3df5dd8391
More compiler warnings 2017-11-27 23:52:17 +01:00
Michał Janiszewski
f46f2d6821 Fix g1 image ID check (#6742) 2017-11-27 22:03:54 +00:00
OpenRCT2 git bot
a3be15c9c9 Merge Localisation/master into OpenRCT2/develop. 2017-11-27 04:01:17 +00:00
Michał Janiszewski
585fc1afce
Ensure variables in switch are properly scoped 2017-11-26 23:14:40 +01:00
Ted John
86ec21016d
Merge pull request #6487 from janisozaur/includes
Remove limits.h from common.h
2017-11-26 22:08:51 +00:00
Michał Janiszewski
9fcef9ed07 Only guard font access in RCT2-less builds 2017-11-26 21:48:54 +01:00
Michał Janiszewski
8097beeae1 Guard access to font 2017-11-26 21:38:50 +01:00
Michał Janiszewski
14f39e189d Fix building 2017-11-26 21:24:57 +01:00
Michał Janiszewski
b7ecaf6ae0 Fix StaffList.cpp compilation 2017-11-26 20:36:03 +01:00
Michał Janiszewski
6943a45b19 Remove limits.h from common.h 2017-11-26 20:36:03 +01:00
Richard Jenkins
210e6d8eef
Update changelog for track design search
[ci skip]
2017-11-26 13:54:58 +00:00
Hielke Morsink
59cfc3459d Add clear button 2017-11-26 13:44:45 +00:00
Hielke Morsink
c648a60502 Add search box to track list window
This adds a vector of indices used for the track designs array, which is
used instead of the window list index.

Some other things I've edited that are not directly related to this
commit:

- Orders widgets in logical order like how they appear on screen
- Adds some comments to existing code
2017-11-26 13:44:45 +00:00