Commit Graph

13791 Commits

Author SHA1 Message Date
Ted John 8304f01aef Fix #5809: Support Steam RCT1 file layout
Checks RCTdeluxe_install sub directory for csg1.1 and csg1i.dat when loading CSG images.
2018-01-23 18:28:33 +01:00
Gymnasiast 133a460630 Update vehicle names and descriptions 2018-01-23 18:20:29 +01:00
Hielke Morsink c965f854d8 Add maximum number of lines in console window
Changed the container type from a vector to a deque, as that supports FIFO with random access.
2018-01-23 16:43:33 +01:00
Hielke Morsink 7c0bcc2c34 Handle codepoints for text colour in a nicer way
This replaces a couple more buffers with std::strings and makes {WINDOW_COLOUR_2} the default colour when adding a new line. Codepoints for any other colour will be added, and overwrite the codepoint that gets calculated in `console_draw` (which is only there for when the user has text set to black).
2018-01-23 16:43:33 +01:00
Hielke Morsink 3633d56e3e Refactor and cleanup in-game console to use C++ strings
Instead of storing the console text in one large buffer, it gets stored in a vector of strings. This makes the code easier to understand, as the `std::string`s now handle the buffer lenghts, instead of doing that manually and bloating the code with it, but at the cost of some performance (not noticable though). This fixes an issue where the buffer would be cut off when the total length exeeded the buffer length.
With this commit printed warnings and errors will have a red and yellow colour. It looks like this was intended, but it didn't work before, and makes `gfx_draw_string` and related functions take const strings.
2018-01-23 16:43:33 +01:00
pss9205 6b716dc157 Fix #7021: Extra rating factors overflow the vehicle tab in Korean (#7073) 2018-01-23 16:06:37 +01:00
Richard Jenkins 498e68f550
Add link to Windows SDK 10.14393
[ci skip]
2018-01-23 11:31:16 +00:00
Ted John 9e729931e8 [openrct2.proj] Revert back to using .exe for sprite building. 2018-01-23 09:40:36 +00:00
Ted John 08a527b2a7 Ensure g2.dat building output is written out for AppVeyor 2018-01-23 09:30:07 +00:00
Gymnasiast 9a362a8aa3 Import RCT1 gardens correctly 2018-01-22 20:25:29 +01:00
Gymnasiast 498ca56f57 Fix unicode values of some characters 2018-01-22 12:16:22 +01:00
Gymnasiast 6bf09e7abb Add preview images for RCT1 edge styles 2018-01-22 11:44:38 +01:00
OpenRCT2 git bot 5df9c90b86 Merge Localisation/master into OpenRCT2/develop. 2018-01-22 04:01:59 +00:00
Justin Gottula a64c517638 Add self to contributors.md 2018-01-22 01:39:30 +00:00
Justin Gottula d93a07a58d Disable link-time code generation for MSVC Debug builds
Every time I do a debug build, I get a warning message from the linker
telling me that /LTCG is doing nothing and that removing it from the
options will speed up the linking process.

(I believe this is due to LTCG being incompatible with incremental
linking; and AFAIK incremental linking is enabled in debug builds by
default.)
2018-01-22 01:39:30 +00:00
ZehMatt 1f5140ae94 Fix benchgfx attemping to render unloaded parks. 2018-01-21 21:46:11 +00:00
ZehMatt abd74dbb1e Add exception handling in LoadParkFromFile. 2018-01-21 21:46:11 +00:00
Michael Steenbeek fdeaaa5631
Allow selecting RCT1 map edges in land tool 2018-01-21 17:18:00 +01:00
Richard Jenkins 104419f6b2 Fix #7060: Ride window settings can underflow 2018-01-20 20:34:39 +00:00
Ted John 51df68a7d9
Merge pull request #7051 from IntelOrca/refactor/remaining-ride-to-cpp
Refactor remaining ride sources to C++
2018-01-19 10:49:54 +00:00
Ted John 6d63729a40 Fix MSVC 2018-01-18 22:59:30 +00:00
Richard Jenkins a17aeed161 Xcode fix 2018-01-18 22:37:12 +00:00
Ted John aa0d7645da Refactor ride_ratings.c to C++ 2018-01-18 22:33:06 +00:00
Richard Jenkins d9725702ca Make console text colour themeable 2018-01-18 23:18:23 +01:00
Richard Jenkins 78a5406468 Visual improvements to the in-game console 2018-01-18 23:18:23 +01:00
Ted John f2014fb6b1 Refactor music_list.c to C++ 2018-01-18 22:08:56 +00:00
Ted John 6a8cce710c Refactor track_design_save.c to C++ 2018-01-18 22:04:09 +00:00
Marijn van der Werf d09134e64a Decrease Window dependencies in Vehicle.cpp 2018-01-18 22:57:55 +01:00
Marijn van der Werf 7d0417a366 Import private headers in remaining files 2018-01-18 22:57:55 +01:00
Marijn van der Werf baf56db937 Use rct_window internals in Theme 2018-01-18 22:57:55 +01:00
Marijn van der Werf 7aa2cd7ac5 Move peep list refreshing to UI module 2018-01-18 22:57:55 +01:00
Marijn van der Werf 430bf482f2 Add viewport getter 2018-01-18 22:57:55 +01:00
Marijn van der Werf aa0933d08a Convert rct_window to opaque pointer 2018-01-18 22:57:55 +01:00
Marijn van der Werf 4c956def67 Update UI imports 2018-01-18 22:57:55 +01:00
Ted John 738b72d0ce
Merge pull request #7046 from OpenRCT2/refactor/platform-to-cpp
Refactor remaining platform files to C++
2018-01-18 21:51:58 +00:00
Michał Janiszewski a634b7e2cb Add comment explaining reasoning behind our own getumask() 2018-01-18 22:47:10 +01:00
Michał Janiszewski c6e2f1a6ea Fix Android.cpp 2018-01-18 22:42:54 +01:00
Ted John 61450353cb Fix build for Linux 2018-01-18 21:25:54 +00:00
Michael Steenbeek f551a150fe Fix Xcode project 2018-01-18 21:13:38 +00:00
Ted John 974ef800cb Rename remaining platform c files to cpp 2018-01-18 21:12:41 +00:00
Ted John d9d2b2373d Rename crash.h to Crash.h 2018-01-18 21:12:41 +00:00
Ted John 34d41aeadd Convert shared.c to C++ 2018-01-18 21:12:41 +00:00
Richard Jenkins 3df8ae6960 Use colour defines in dazzling colours array 2018-01-18 21:28:51 +01:00
Michał Janiszewski 409a995e7f Discard const on returned type 2018-01-18 19:06:27 +01:00
Michał Janiszewski 48c3225cb7 Fix types of caught exception in IniReader.cpp 2018-01-18 19:06:05 +01:00
Richard Jenkins af76cef94b
Fix bracket placement 2018-01-18 14:08:06 +00:00
Ted John 8630498213
Convert platform/windows.c to C++ (#7044) 2018-01-18 12:50:34 +00:00
Ted John bea500638b Remove old file enumerator functions from platform 2018-01-18 11:38:52 +01:00
Ted John cb720025fa Replace platform_enumerate_directories_begin with FileScanner code
This is isn't a particularly pretty implementation but it is only temporary until we can use std::filesystem.
2018-01-18 11:38:52 +01:00
Ted John 6fd56d140d Remove remaining uses of platform_enumerate_files_begin 2018-01-18 11:38:52 +01:00