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
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
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
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
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
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
Michael Steenbeek
3f8556c85a
Fix #6294 : Refactor Editor::SelectedObjects
2017-11-28 13:38:54 +01:00
Michał Janiszewski
f46f2d6821
Fix g1 image ID check ( #6742 )
2017-11-27 22:03:54 +00:00
Michał Janiszewski
585fc1afce
Ensure variables in switch are properly scoped
2017-11-26 23:14:40 +01: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
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
Ted John
84305af7ab
Merge pull request #6715 from Broxzier/screenshot_climate
...
Add optional screenshot argument to set weather
2017-11-25 23:32:35 +00:00
Ted John
79a1755666
Merge pull request #6722 from duncanspumpkin/name_sprite_fields
...
Name known misc sprite fields
2017-11-25 23:31:00 +00:00
Michał Janiszewski
0a9ee59152
Change format to use 5-wide index
2017-11-25 16:42:12 +01:00
Michał Janiszewski
39bb4bcc41
Report indexing progress
2017-11-25 16:42:12 +01:00
duncanspumpkin
b3cf757ee1
Increment network version
2017-11-25 09:31:16 +00:00
duncanspumpkin
b6ce5ce4a5
Simplify fountain code. Name sprite fields. Fix warning
...
Fountain jumping code has been sped up slightly so that the code can be simplified and not require rolling over a unsigned int. Also removed setting direction of the fountain as the field was not used.
2017-11-25 09:30:38 +00:00
duncanspumpkin
464f5e858a
Remove unused fields
2017-11-25 09:30:36 +00:00
duncanspumpkin
6905b81216
Label unused vars as pad and remove where required
2017-11-25 09:30:35 +00:00
duncanspumpkin
993ca5a03d
Fix warning
2017-11-25 09:30:35 +00:00
duncanspumpkin
e7774a4012
Clean up balloon update code. See previous commit for more info
2017-11-25 09:30:34 +00:00
duncanspumpkin
8bf42ea4f9
Modify how steam updates to simplify code.
...
This will move steam in exactly the same way as the previous code but the
code is easier to understand. Note on first load of a save that was made
prior to this change there will be 1 tick of incorrect movement for steam. This is barrely noticeable.
2017-11-25 09:30:33 +00:00
duncanspumpkin
0afc0eba5e
Name known misc sprite fields.
2017-11-25 09:30:32 +00:00
Michael Steenbeek
1f4643b19c
Show TT's Glass Roofs in the Abstract Theming group
2017-11-24 13:56:11 +01:00
Michael Steenbeek
b5a4aa30cc
Add TT's tile roofs to R&W tab, add TT's wooden roofs to Mine theming
2017-11-24 13:17:25 +01:00
Michael Steenbeek
303447f647
Show TT's Pirate Roofs in the Pirates Theming group
2017-11-24 12:27:22 +01:00
Michael Steenbeek
c9ca5d55cd
Rename incorrectly named flag
2017-11-24 11:44:57 +01:00
Michael Steenbeek
bb569d35fb
Fix some CC base blocks
2017-11-24 11:44:57 +01:00
rwjuk
d920083503
Fix #6663 : Object load error window filename corruption
2017-11-24 07:53:49 +01:00
Marijn van der Werf
f19344aea6
Move tile inspector to UI module
2017-11-23 23:12:25 +01:00
Michael Steenbeek
d88c01de74
Split Steel Wild Mouse and Spinning Wild Mouse when using Ride Groups
...
Includes a little cleanup for the Ride Groups and a fix in the table with available pieces, which erroneously listed banked pieces as available.
2017-11-23 16:00:58 +01:00
Michael Steenbeek
1011d6172d
Clean up string IDs
2017-11-23 15:52:06 +01:00
Hielke Morsink
ce6d7415e5
Add ability to search object by filename
...
This commit increases the max length of the filter string from 40 to
MAX_PATH, so that entire paths can be pasted inside the search box.
2017-11-23 12:08:04 +01:00