Ted John
d6ac74f4bd
Fix loading SC6 files in editor
2018-05-29 18:39:13 +01:00
Ted John
376b6d04d8
Fix Linux builds
2018-05-29 18:39:13 +01:00
Ted John
c28a42d877
Optimise SawyerChunkReader for MSVC debug builds
...
- Change std::copy_n and std::fill_n back to std::memcpy and std::memset. They do not have the overhead of checks.
- Change std::malloc to HeapAlloc as 16 MiB allocations are very slow due to it initialising all the memory to 0xCC.
2018-05-29 18:39:13 +01:00
Ted John
3d98e1ad1d
Do not reset title sequence when loading the title screen
2018-05-29 18:39:12 +01:00
Ted John
f5e77a9e15
Load objects for title editor and scenario editor
2018-05-29 18:39:12 +01:00
Ted John
f9d7ee93fc
Revert changes to libopenrct2.vcxproj
2018-05-29 18:39:12 +01:00
Ted John
3a708ea112
Refactor parallelism to re-usable method
2018-05-29 18:39:12 +01:00
Ted John
1766abde91
Multi-thread object loading
2018-05-29 18:39:12 +01:00
Ted John
fbe0f5d04f
Throw object load exception if unable to load any objects
2018-05-29 18:39:12 +01:00
Ted John
820fedb3df
Fix loading title sequence parks
2018-05-29 18:39:12 +01:00
Ted John
6af0cb2b88
Fix import of S4 and S6
2018-05-29 18:39:12 +01:00
Ted John
96a0a22cd1
Make start on loading objects only once
2018-05-29 18:39:12 +01:00
Park Joon-Kyu
30fa405eb3
Make Twitch integration API URL configurable. ( #7555 )
2018-05-28 22:01:37 +02:00
Aaron van Geffen
a2f39079a7
Merge pull request #7556 from Gymnasiast/tile-element-cleanup
...
Replace all occurrences of tile_element_is_last_for_tile()
2018-05-25 13:34:28 +02:00
Aaron van Geffen
2420a16e9e
Prevent peeps from spawning in the scenario editor.
...
Regression from 721dc00778
.
2018-05-25 12:32:40 +02:00
Hielke Morsink
39b46d3083
Bump network version
2018-05-25 00:47:19 +02:00
Hielke Morsink
fe40005372
Automatically set the correct page
...
Instead of having to set the page and setup the widgets correctly when a new elements gets selected, it now switches automatically on invalidation to the correct tab. This fixes the issue where pasted elements were selected but the page for them not shown, and removes two of the intents that were made for the tile inspector.
2018-05-25 00:46:20 +02:00
Aaron van Geffen
85575b612e
Apply formatting to string_to_money.
2018-05-24 17:17:44 +02:00
Aaron van Geffen
1d7d8a8043
Do not reallocate to prefix decimal money with '0'.
2018-05-24 17:17:44 +02:00
Aaron van Geffen
847d4e8b03
Process string_to_money's worst case in O(n) rather than O(n²).
2018-05-24 15:03:15 +02:00
Michael Steenbeek
b9186ce83d
Make argument const
2018-05-24 13:44:09 +02:00
Gymnasiast
ef7b8b8da0
Return MONEY32_UNDEFINED on unsalvagable string_to_money() input
2018-05-24 13:22:25 +02:00
Michael Steenbeek
b573bd49b3
Replace all occurrences of tile_element_is_last_for_tile()
2018-05-24 11:44:53 +02:00
Aaron van Geffen
0d248dd6f4
Bump network version.
2018-05-23 16:34:01 +02:00
Aaron van Geffen
ca16fe8e62
Fix refurbishment confirmation window not closing in multiplayer mode.
2018-05-23 16:33:37 +02:00
jensj12
b6b3486a3d
Fix cost being shown as 0 while paused
2018-05-23 16:33:37 +02:00
jensj12
56fcd2ec94
Use ride_get_start_of_track in TrackDesignSave
2018-05-23 16:33:37 +02:00
jensj12
ce0bf28cb5
Fix not enough cash error showing incorrectly
2018-05-23 16:33:37 +02:00
jensj12
50e3f8b4f6
Cleanup of ride_demolish
2018-05-23 16:33:37 +02:00
jensj12
23dc6bb9d3
Add button to refurbish ride
...
Add a button to refurbish the selected ride. The cost for this is 35% of the
build price and may only be done if the ride is closed and empty.
2018-05-23 16:33:37 +02:00
Aaron van Geffen
b836ad050d
Rewrite CodePageFromUTF8 as CodePageFromUnicode.
2018-05-22 19:51:34 +02:00
Aaron van Geffen
3fd75906b6
Fix String::ToUtf8 and String::ToUtf16 on Linux.
...
wchar_t typically uses UTF-32 codepoints on Linux, unlike Windows, which uses UTF-16.
2018-05-22 19:51:34 +02:00
Aaron van Geffen
bab66d1eaf
Fix MinGW compilation.
2018-05-22 17:37:07 +02:00
Ted John
71a2cb46d2
Fix ToUpper tests on Windows
...
LCMapStringEx does not unfold ligatures if there is no uppercase equivalent.
2018-05-22 17:37:07 +02:00
Aaron van Geffen
bf1fd997d0
Do not require ICU on MinGW and MSVC targets.
2018-05-22 17:37:07 +02:00
Aaron van Geffen
13e35285f1
Replace non-Windows versions of ToUtf8 and ToUtf16 with ICU calls.
2018-05-22 17:37:07 +02:00
Ted John
6109a9bf17
Improve Windows implementation of ToUpper
2018-05-22 17:37:07 +02:00
Ted John
085d85585a
Use Windows API for utf8-utf16 conversions
2018-05-22 17:37:07 +02:00
Aaron van Geffen
8e919d2f84
Change ICU variant of String::ToUpper for string_view argument.
2018-05-22 17:37:07 +02:00
Ted John
386ab1b0fa
Add windows implementation for ToUpper
2018-05-22 17:37:07 +02:00
Aaron van Geffen
392459f038
Remove dependency on iconv.
2018-05-22 17:37:07 +02:00
Fusxfaranto
a91dd6a356
Implement ICU support for uppercasing, with tests.
2018-05-22 17:37:07 +02:00
Aaron van Geffen
f29b42cc26
Allow converting strings between code pages in both directions.
...
Co-authored-by: Fusxfaranto <fusxfaranto@gmail.com>
2018-05-22 17:37:07 +02:00
Aaron van Geffen
ea80f0ea56
Split off GetIcuCodePage to its own function.
2018-05-22 17:37:07 +02:00
Aaron van Geffen
ee8bf9bd4a
Use ICU for converting strings to UTF-8 instead of our own tables.
...
Co-authored-by: Fusxfaranto <fusxfaranto@gmail.com>
2018-05-22 17:37:07 +02:00
Aaron van Geffen
3ed6a25bbb
Fix park value regression from #7543 .
2018-05-22 11:42:21 +02:00
Michael Steenbeek
d44d727fac
Merge pull request #7543 from AaronVanGeffen/refactor/park
...
Create new Park class
2018-05-21 10:17:38 +02:00
Ted John
080330070b
Write file index even if there are no files
2018-05-20 18:40:06 +01:00
Ted John
efc14fe8b6
Do not create title sequences directory unnecessarily
2018-05-20 18:39:52 +01:00
Ted John
46300f216f
Fix #7544 : Freeze when starting headless server with no arguments
...
Fixes #7313 : Loading an invalid path with openrct2 produces results different than expected
Do not load title sequences in headless mode and prevent use of null audio mixer when ride music is stopped.
2018-05-20 02:21:44 +01:00