Jeroen D Stout
4354aae958
Correct the handling of edges
2018-01-11 10:37:40 +01:00
Jeroen D Stout
e4b53dc68a
Add more generic virtual floor tile check
2018-01-11 10:37:40 +01:00
Jeroen D Stout
d31a911725
Add remove virtual function and clarify invalidate todo
2018-01-11 10:37:40 +01:00
Jeroen D Stout
c8e63de802
Refactor tile property checks and code conventions
2018-01-11 10:37:40 +01:00
Jeroen D Stout
8e8dc89068
Improve floor visuals with glassy transparent surface
2018-01-11 10:37:40 +01:00
Jeroen D Stout
b9faed7437
Mark being inside a piece of sloped terrain as being occupied
2018-01-11 10:37:40 +01:00
Jeroen D Stout
cee9129601
Improve visual quality of virtual floor
2018-01-11 10:37:40 +01:00
Jeroen D Stout
0268be92cb
Prevent ride construction from setting tiles when scenery tool is active
2018-01-11 10:37:40 +01:00
Jeroen D Stout
58321ec2cd
Fix underground check for sloped surfaces / clipping improvement
2018-01-11 10:37:40 +01:00
Jeroen D Stout
79fa16138a
Move virtual_floor_paint to own file / add edge highlighting
2018-01-11 10:37:40 +01:00
Jeroen D Stout
d67aba09ad
Make placing scenery set virtual floor height
2018-01-11 10:37:40 +01:00
Jeroen D Stout
2849561eb6
Make ride editing set virtual floor height
2018-01-11 10:37:40 +01:00
Jeroen D Stout
128cff60db
Add virtual floor painting functions.
2018-01-11 10:37:40 +01:00
Michał Janiszewski
19d35e6898
MSVC fixes pt 5
2018-01-11 09:30:09 +01:00
Michał Janiszewski
f50ce343a2
MSVC fixes pt 4
2018-01-11 09:30:09 +01:00
Michał Janiszewski
96744fdaad
MSVC fixes pt 3
2018-01-11 09:30:09 +01:00
Michał Janiszewski
6cdf3db245
MSVC fixes pt 2
2018-01-11 09:30:09 +01:00
Michał Janiszewski
469e142c7b
Change casing of header files
2018-01-11 09:30:09 +01:00
Michał Janiszewski
156ecb7277
MSVC fixes pt 1
2018-01-11 09:30:09 +01:00
Michał Janiszewski
f1fa9f7106
Format TrackPaint.cpp
2018-01-11 09:30:09 +01:00
Michał Janiszewski
a9767c801e
Clang-format guards
2018-01-11 09:30:09 +01:00
Michał Janiszewski
70505f4fa0
Refactor track_paint to C++
2018-01-11 09:30:09 +01:00
Michał Janiszewski
82dfde4419
Refactor ride_data to C++
2018-01-11 09:30:09 +01:00
Michał Janiszewski
5a8cfb16c8
Clang-format guards for static data
...
This guards most of the hardcoded data from clang-format.
[ci skip]
2018-01-11 09:19:56 +01:00
Michał Janiszewski
6a65f791b6
Add const to arguments
2018-01-10 23:58:57 +01:00
Gymnasiast
ce9a72a4e9
Fix export of invented scenery items
2018-01-10 23:24:10 +01:00
Gymnasiast
9f8e3240d3
Fix #6992 : Crash when hovering over an RCT1 track design in Track Manager
2018-01-10 21:20:46 +01:00
Gymnasiast
8fb0046136
Fix #6990 : Scenery not correctly marked as available
2018-01-10 20:29:20 +01:00
Michael Steenbeek
ddd8479827
Move some research logic out of the Inventions window
2018-01-10 16:31:13 +01:00
Michael Steenbeek
37cec95ce2
Move research list import/export to separate functions
2018-01-10 16:31:13 +01:00
Michael Steenbeek
4db3323973
Create scenery_group_set_invented()
2018-01-10 16:31:13 +01:00
Michael Steenbeek
0995ab9910
Fold gResearchNextCategory into gResearchNextItem
2018-01-10 15:31:47 +01:00
Michael Steenbeek
b11f59ba6c
Refactor gResearchedSceneryItems
2018-01-10 15:31:47 +01:00
Michael Steenbeek
d2de1a4a95
Abstract access to gResearchedRide{Types,Entries}
2018-01-10 15:31:47 +01:00
Michael Steenbeek
ea4eb7775a
Create scenery_set_(not_)invented()
2018-01-10 12:28:36 +01:00
Michael Steenbeek
3d9466a2f6
Fix refactor mistake
2018-01-10 12:05:06 +01:00
Michał Janiszewski
c098eaa25d
MSVC fix
2018-01-09 23:52:22 +01:00
Michał Janiszewski
517b27c1a4
Format refactored files
2018-01-09 23:52:22 +01:00
Michał Janiszewski
384df8f52c
Clang-format guards
2018-01-09 23:52:22 +01:00
Michał Janiszewski
09fbce741d
Refactor vehicle_paint to C++
2018-01-09 23:52:22 +01:00
Michał Janiszewski
5c494c5894
Refactor vehicle_data to C++
2018-01-09 23:52:22 +01:00
Michael Steenbeek
a116bb530f
Remove unused ORI_RIDE_FLAG_SEPARATE
2018-01-09 21:35:10 +01:00
Michael Steenbeek
55b473d866
Rename gResearchLastItemSubject to gResearchLastItem
2018-01-09 21:35:10 +01:00
Michael Steenbeek
0ae5d7d476
Remove research_remove_non_separate_vehicle_types()
...
This removes more usages of the SEPARATE_RIDE flag.
2018-01-09 21:35:10 +01:00
Michael Steenbeek
e15c8f8b3b
Import broken vehicle and car from S4
2018-01-09 14:06:11 +01:00
Michael Steenbeek
f508402317
Fix RCT1 research naming to match RCT2's
2018-01-09 13:51:54 +01:00
Michael Steenbeek
6a88d6e04d
Move and rename RCT{1,2,12}.h
2018-01-09 13:36:41 +01:00
Michael Steenbeek
0296608623
Name/fix various RCT1/RCT2 limits
2018-01-09 13:36:41 +01:00
Michał Janiszewski
9c84ae30fb
Hide colliding "struct VDStruct" definitions to anon namespaces
2018-01-09 11:01:03 +00:00
Michael Steenbeek
6088a084a2
Replace 0x40 with COLOUR_FLAG_INSET
2018-01-09 10:37:09 +01:00
Michael Steenbeek
857e64590d
Name some rct(1)_peep fields
2018-01-09 10:35:07 +01:00
Michael Steenbeek
647f085098
Merge pull request #6925 from AaronVanGeffen/widgets/cleanup-1
...
Clean up and name remaining widgets
2018-01-09 09:52:15 +01:00
Michał Janiszewski
e602162fdb
Include openrct2-cli in default `all` target
2018-01-08 13:15:11 +01:00
Michał Janiszewski
6b06ada801
Fix Android compilation
2018-01-08 10:03:31 +01:00
Aaron van Geffen
c9b48beea0
Replace WWT_CLOSEBOX with WWT_BUTTON where not used as a close button.
2018-01-08 00:02:25 +01:00
Aaron van Geffen
aa885c661e
Always apply vertical alignment to button texts.
...
This has no effect on the appearance as of this commit, yet.
2018-01-08 00:01:45 +01:00
Aaron van Geffen
bbef07f514
Refactor widget_text_unknown into widget_text_centred.
2018-01-08 00:01:45 +01:00
Aaron van Geffen
e61194961f
Rename WWT_25 to WWT_PLACEHOLDER.
...
This is only used in the bottom toolbar as a placeholder,
while still capturing events.
2018-01-08 00:01:45 +01:00
Aaron van Geffen
12e3e171f1
Refactor WWT_24 into WWT_LABEL.
2018-01-08 00:01:45 +01:00
Aaron van Geffen
ecc1cfed2a
Rename WWT_DROPDOWN_BUTTON to WWT_BUTTON.
...
The previous name implied an exclusive association with dropdowns.
While used to display the dropdown triangle button, this is not an
exclusive use.
2018-01-08 00:01:32 +01:00
Aaron van Geffen
7b4c71ff68
Remove unused WWT_4, WWT_5, WWT_11, WWT_18.
2018-01-07 23:54:51 +01:00
Aaron van Geffen
8ad1bc9b86
Rename WWT_14 to WWT_LABEL.
...
This is used for left-aligned label text.
2018-01-07 23:54:51 +01:00
Aaron van Geffen
fad8494ccc
Rename WWT_12 to WWT_LABEL_CENTRED.
...
This is used for centred textual labels.
2018-01-07 23:54:51 +01:00
Aaron van Geffen
9a2d3b226c
Rename WWT_13 to WWT_TABLE_HEADER.
...
This is used for left-aligned header buttons for data tables.
2018-01-07 23:54:51 +01:00
Aaron van Geffen
c023f6a3f7
Moved console command, window invalidation, fix help.
2018-01-07 23:53:47 +01:00
Aaron van Geffen
bf1bb33b86
Properly invalidate widgets after using date spinners.
2018-01-07 23:53:47 +01:00
Harrison Gentry
752d9bc89d
Add cheat and console command to set game date.
...
Run "date" command on cmdline to set date.
Ex:
$ date 0004 06 13
sets date to June 13th, year 4
2018-01-07 23:53:47 +01:00
Gymnasiast
2ecbac1550
Fix #6972 : Last development field is identical to progress field
2018-01-07 22:28:08 +01:00
Michał Janiszewski
77c4fa00bc
Use nullptr instead of NULL in C++
2018-01-07 21:43:37 +01:00
Michał Janiszewski
2c8528798f
Use explicit boolean values, compare with nullptr
2018-01-07 21:38:02 +01:00
Michael Steenbeek
7d5de63484
Refactor rct_research_item, refactor access to rct_research_item
...
This takes away a lot of the bitshift and bit mask trickery previously used.
2018-01-07 15:33:44 +01:00
Richard Jenkins
59439b778b
Fix #6919 : Shops don't connect to newly-placed paths
2018-01-07 13:40:37 +01:00
Ted John
c3eab7ead6
Refactor window.c to C++
2018-01-07 12:39:58 +01:00
Ted John
83d1b6eb8f
Refactor widget.c to C++
2018-01-07 12:39:58 +01:00
Ted John
f18595a1c1
Refactor viewport.c to C++
2018-01-07 12:39:58 +01:00
Ted John
0b84c7bb43
Refactor viewport_interaction.c to C++
2018-01-07 12:39:58 +01:00
Ted John
c974daf467
Refactor console.c to C++
2018-01-07 12:39:58 +01:00
Ted John
630a5065db
Refactor colour.c to C++
2018-01-07 12:39:58 +01:00
Ted John
b781291b58
Refactor chat.c to C++
2018-01-07 12:39:58 +01:00
ZehMatt
df9854813f
Use templates for bounding box test, better branch prediction
2018-01-07 02:18:12 +00:00
ZehMatt
d25c46ef93
Refactor image cache to fixed size.
2018-01-07 02:18:12 +00:00
TELK
d0ec5e95f8
Add park and company value to console 'get' command
...
This allows getting the park and company value in scenario that don't display them such as Bumbly Bazaar.
2018-01-06 22:00:28 +01:00
Michael Steenbeek
c3e79b1948
Fix Amity Airport coordinate adjustment
2018-01-06 21:46:18 +01:00
Richard Jenkins
c966faf9c2
Fix #6242 : Scenery invalidated when there is no visual change
2018-01-06 19:20:39 +00:00
Michael Steenbeek
755add6c9a
Compile localisation folder as C++
2018-01-06 18:32:25 +01:00
Michael Steenbeek
1fa25739fb
Fix #5398 : Mini Maze.TD4 causes weird behaviour and crashes
2018-01-06 18:26:28 +01:00
Aaron van Geffen
15a4f67f14
Restore tab-specific widget dimensions for Finances window.
2018-01-06 16:42:48 +00:00
rwjuk
285fc9d11c
network version bump
2018-01-06 13:49:29 +00:00
Richard Jenkins
9bb7b66157
Fix #6948 & #6949 : Removing or trying to build a ride freezes game
2018-01-06 13:49:29 +00:00
Michael Steenbeek
0430cfb6db
Fix #6963 : Demolishing ride 0 causes freezes
2018-01-06 14:46:02 +01:00
duncanspumpkin
9e30bfe313
Fix #6954 . Readd Error Message for too many rides
...
Removed during refactor of game actions
2018-01-06 07:48:37 +00:00
Michał Janiszewski
94946ce13b
Use min/max instead of clamp for limiting tree count in RMG
...
Call to `clamp` may not guarantee correct result when `high` < `low`,
use calls to `max()` and `min()` explicitly instead.
2018-01-05 23:44:59 +00:00
Michael Steenbeek
3882715c38
Fix Xcode project
2018-01-05 23:04:52 +01:00
Ted John
3dcbebcf68
Refactor drawing.c to C++
2018-01-05 22:57:57 +01:00
Ted John
144dbf431c
Refactor ttf.c to C++
2018-01-05 22:57:55 +01:00
Ted John
0c3c998177
Refactor lightfx.c to C++
2018-01-05 22:57:55 +01:00
Ted John
559ec8a404
Refactor font.c to C++
2018-01-05 22:57:54 +01:00
Ted John
36d4e7753f
Refactor scrolling_text.c to C++
2018-01-05 19:58:15 +00:00
Ted John
cb468cadb6
Refactor string.c to C++
2018-01-05 19:58:15 +00:00
Ted John
90b63b09f8
Refactor rect.c to C++
2018-01-05 19:58:15 +00:00
Ted John
ad406e5ae0
Refactor line.c to C++
2018-01-05 19:58:15 +00:00
Michael Steenbeek
6450cce829
Fix compilation on Xcode
2018-01-05 19:58:05 +01:00
Ted John
02c58a6c5a
Remove custom base Exception class
2018-01-05 18:11:47 +00:00
Harrison Gentry
5862cd9d40
Fix guest counter to say '1 guest' instead of '1 guests'
2018-01-05 08:58:17 +01:00
Tyler Ruckinger
26c35b5c28
Fix consecutive thoughts removal on ride demolish ( #6937 )
...
* Fix consecutive thoughts removal on ride demolish
* Update contributors.md
* Update changelog
* Update network version
2018-01-05 06:49:05 +00:00
Aaron van Geffen
81905fc161
Vertically align widgets in lower-left bottom toolbar.
2018-01-05 00:44:59 +01:00
Duncan
12dde3a589
Refactor of Vehicle Sound Functions ( #6907 )
...
* Refactor vehicle_update_sound_params
Named known params.
Changed function structure to use more return statements to prevent multiple nested ifs.
Used core memory functions instead of hand rolled version.
Added more comments.
Named sub_6BC2F3.
Added comment on likely source of corruption of sound.
* Refactor vehicle_sounds_update
Split the function up into multiple functions.
Rework code to remove GoTos.
* Label params. Refactor slightly the restraint code to use bools
2018-01-04 21:38:27 +00:00
Hielke Morsink
512dc2c721
Fix #6923 : hovering over queues turns them into regular paths
2018-01-04 21:23:56 +01:00
Michael Steenbeek
31bf792538
Refactor research - spike 1
...
This involves refactoring gResearchedRideTypes and gResearchedRideEntries
and the functions involved.
Also renames some functions in order to better express what they do.
2018-01-04 17:44:51 +01:00
Michał Janiszewski
c7417e11a4
Use `bool` type for boolean logic
2018-01-04 15:40:52 +01:00
Hielke Morsink
3dd98c7aa2
Apply coding style
2018-01-04 07:58:31 +01:00
Hielke Morsink
a6e4c1d677
Remove undefined function declaration
2018-01-04 07:58:31 +01:00
Hielke Morsink
7d37798f19
Reduce duplicated code in finances window
...
All of the pages share some common widgets (title, close button, background, tabs). To
reduce code duplication here, I've moved those values to a define that then gets used
for each of the pages.
The same thing applies to enabled widgets. One additional change is that left bitshifts
from `1` have been changed to `1ULL`.
2018-01-04 07:58:31 +01:00
Aaron van Geffen
0138df5dd8
Centre overall viewports on geometric centre.
2018-01-04 07:57:27 +01:00
Aaron van Geffen
92bcc5f579
For overall views, show small rides zoomed in all the way.
2018-01-04 07:57:27 +01:00
Michał Janiszewski
17354122d4
Remove deprecated comment
2018-01-04 07:36:54 +01:00
Michał Janiszewski
33a94fe1bb
Use C++ headers in C++ code
2018-01-04 07:36:54 +01:00
Michał Janiszewski
b2bc974fe7
Use nullptr where possible
2018-01-04 06:58:44 +01:00
Michał Janiszewski
4d0c88fb94
Mark constructors explicit ( #6928 )
2018-01-04 01:12:34 +00:00
Tobias Kohlbau
7aeb3e11b3
Fix #5562 : fix continous reopening of log files
...
Every logging opens a new file handle which should be avoided
for performance reasons.
Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
2018-01-04 00:01:43 +01:00
Michael Steenbeek
91589f57c6
Compile map.c as C++
2018-01-03 20:40:51 +01:00
Ted John
0cbc8bea10
Fix compile of Scenario.cpp
2018-01-03 15:07:17 +01:00
Ted John
49f5611bd1
Rename scenario.c|h to cpp
2018-01-03 15:07:17 +01:00
Hielke Morsink
eb4a8924d1
Refactor and clean up footpath-related code
...
This commit corrects some misused defines, and gave them clearer names.
For example, the slope mask was only useful for surface elements, so now
"SURFACE" is in its name. I also replaced any hard coded values that I
could find and knew their purpose off.
2018-01-03 10:57:37 +01:00
Michael Steenbeek
d25856d59c
Make tile element type strings in the Tile Inspector translatable
2018-01-03 10:21:53 +01:00
Michael Steenbeek
347ff702d0
Refactor objects
2018-01-03 10:16:51 +01:00
Aaron van Geffen
da519c9b32
Add extra padding to label text in guest window.
2018-01-03 10:09:21 +01:00
Michael Steenbeek
3b06f92c0a
Merge pull request #5964 from janisozaur/sse4.1
2018-01-02 22:27:17 +01:00
Michał Janiszewski
7f5e3a3a64
Sink some variables
2018-01-02 22:03:10 +01:00
Michał Janiszewski
68881fbbc7
Call core_init() on paths that need it
2018-01-02 19:53:51 +01:00
Michael Steenbeek
1bc711e266
Fix #5761 : Mini coaster doesn't appear despite being selected ( #6909 )
2018-01-02 19:40:08 +01:00
Ted John
d14dce2b95
Prevent invalid chunk message when loading SC4
...
Exception messages were being logged when classifying the file type. This is generally unwanted as it will happen in normal cicumstances.
2018-01-02 18:23:14 +00:00
Michael Steenbeek
b38123924a
Fix object override size ( #6901 )
2018-01-02 17:51:29 +00:00
Michael Steenbeek
c5e966292b
Fix #3171 : Guests entering from the corner of the tile in Amity Airfield
2018-01-02 16:07:39 +01:00
Tobias Kohlbau
9da4305a9c
Fix #5224 : Close multiplayer window when server closes
...
Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
2018-01-02 13:04:53 +01:00
Tobias Kohlbau
a726f6decd
Multiplayer: save manually added servers
...
Adding a server via "Add Server" should handle them
as favorites as otherwise the list is not saved locally and
each server is lost after game restart.
Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
2018-01-02 13:04:08 +01:00
Michał Janiszewski
7f7054049d
Read commandline before initialising other features
...
This allows setting options that may affect future feature detection,
but also allows for configuring verbosity levels early.
2018-01-01 23:51:43 +01:00
Michał Janiszewski
2a4680035f
Update Android project to enable SSE4.1
2018-01-01 23:49:09 +01:00
Michał Janiszewski
566991897e
Add compile guard to not miss SSE4.1
2018-01-01 23:49:09 +01:00
Michał Janiszewski
1fdc8ef49e
Move definition of OPENRCT2_X86 macro
2018-01-01 23:49:09 +01:00
Michał Janiszewski
54394d3a21
Enable SSE4.1 for file implementing it
2018-01-01 23:49:09 +01:00
Michał Janiszewski
645b36169d
Move SSE4.1 code to its own file, detect SSE4.1 in runtime
2018-01-01 23:49:09 +01:00
Michał Janiszewski
c04e720f9f
Hide mask_sse4_1 completely on non-SSE builds
2018-01-01 23:49:09 +01:00
Michał Janiszewski
b30fb66878
Add SSE4.1 implementation of masking
2018-01-01 23:49:09 +01:00
Michał Janiszewski
b1a78c8f24
Fix a compilation issue with older compilers
2018-01-01 22:55:00 +01:00
Michał Janiszewski
1cd7f99d2d
Fix Ride.cpp compilation issues
2018-01-01 22:16:16 +01:00
Gymnasiast
1626f86acc
Compile park.c as C++
2018-01-01 01:18:12 +01:00
Gymnasiast
6f7dfb00aa
Fix duplicated line
2018-01-01 01:01:12 +01:00
Gymnasiast
dc68946649
Remove unneeded C transfer functions from RideGroupManager
2017-12-31 21:15:34 +01:00
Gymnasiast
2a6f2c1763
Fix #6114 : Crash when using a non-LL CSG1.DAT
...
The game will now check for the number of entries in CSG1.DAT. If it's too few, it will now no longer try using its sprites, but print out a warning instead.
2017-12-31 21:03:40 +01:00
Gymnasiast
6e281e2061
Move music tune id list out of Ride.cpp for now
2017-12-31 20:43:17 +01:00
Gymnasiast
23d70a4ac9
Compile ride.c as C++
2017-12-31 20:43:17 +01:00
Aaron van Geffen
e405867dae
Add tooltip to explain why sprite selection is disabled.
2017-12-31 20:03:09 +01:00
Robert Jordan
907f18fd69
Fix: Following canceling
...
Stop previewing sequence now unfollows the current sprite.
Using the arrow keys in-game cancels following.
Resizing the window no longer cancels following.
2017-12-31 20:03:09 +01:00
Robert Jordan
298420fd1e
Finalize follow sprite command
...
Added new smart follow variable to window to more intuitively follow
sprites that may not be directly followable at all times.
Follow sprite is now canceled when dragging the screen but not
scrolling. This is only relevant when testing title sequences in game.
Select sprite button is now disabled in the title menu.
Sprites are now identified based on their name. Excess identification
information is not given as it'd clutter up the screen and is not
necissary with the viewbox in the command editor.
2017-12-31 20:03:09 +01:00
Hielke Morsink
1443216ba0
Replace number with small viewport
2017-12-31 20:03:09 +01:00
Hielke Morsink
943747056e
Add window settings and save support for follow sprite command
2017-12-31 20:03:09 +01:00
Hielke Morsink
500b0d09aa
Add follow sprite command to title sequence
2017-12-31 20:03:09 +01:00
Gymnasiast
559a5c662a
Fix import of RCT1 mazes
2017-12-31 19:54:50 +01:00
Gymnasiast
a435fd7434
Fix #6833 : shops and maze in corrupted file not imported correctly
2017-12-31 18:56:17 +01:00
Hielke Morsink
db7efda880
Fix #6845 : Logo artifacts when changing scale.
...
This correctly invalidates the areas with logo and version text.
2017-12-31 13:14:03 +01:00
Tobias Kohlbau
7a8c5c2842
multiplayer: Adds option to pause server
...
OpenRCT2 does not provide a simple function to pause a server
while no client is connected. This patch adds a so called
"pause_server_if_no_clients" flag within network section of
config.ini. By default this flag is set to false to be backward
compatible with running servers. After setting this flag to
true the game is paused on launch and gets unpaused on first
connection.
Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
2017-12-31 12:55:07 +01:00
Robert Jordan
92fc010b9a
Feature: "Load Scenario" title sequence command
...
New command goes by LOADSC in script files and in the enumeration.
Scenarios are stored using the internal also used for localisation.
Scenarios selected can only be scenarios to originally come with one of
the games or expansions.
Modified Scenario Select window to have a mode just for title editor
scenario selection.
2017-12-31 12:42:40 +01:00
Hielke Morsink
4459eb09b9
Fix invalid entries in surface boundries table
2017-12-30 13:55:39 +01:00
rwjuk
1736a08b04
Fix potential access violation when setting park name
2017-12-29 21:56:07 +01:00
Hielke Morsink
d2f732bbb6
Fix garbage in buffer
2017-12-29 12:33:34 +00:00
rwjuk
50f16b6600
Fix #6388 : Con. rights wrongly shown as available on some RCT1 parks
...
I am an idiot
2017-12-29 08:43:26 +01:00
rwjuk
29c604d850
Fix #6846 : Ride overview window zoom level set too high
2017-12-28 08:55:13 +01:00
Hielke Morsink
32cc3082b2
Remove check that would never pass
...
`safe_strcpy` already takes the null terminator into
account, making the check useless. If the string was too
long, `safe_strcpy` already prints a warning anyway.
Two small fixups included:
- Sorting includes
- Comparing char with `\0` instead of 0
2017-12-27 23:11:04 +01:00
Hielke Morsink
acc33aa47e
Remove duplicated code in text window
...
The two functions for opening were almost identical. The only
difference was that one was passed a string ID and the other a
raw string. The one taking the string ID now converts it to a
raw string, and then calls the other functions.
This also makes the utf8 string const and replaces some C-string
code with String::Set.
2017-12-27 16:19:46 +00:00
Tomas Dittmann
a9aaaf17a3
log exceptionmessage instead of custom string.
2017-12-27 14:32:19 +00:00
Tomas Dittmann
b7d26665d6
Add console output for handled exceptions.
2017-12-27 14:32:19 +00:00
Tomas Dittmann
f9e0865f31
use unique_ptr to prevent memoryleaks.
2017-12-27 14:32:19 +00:00
Tomas Dittmann
c22dac0a29
add missing exception handling.
...
LoadParkFromStream() now handles exceptions from parkImporter->LoadFromStream().
2017-12-27 14:32:19 +00:00
Tomas Dittmann
51bbfb084f
add missing exception handling.
...
Every TryClassifyAsX()-method now has exceptionhandling.
2017-12-27 14:32:19 +00:00
Aaron van Geffen
a5ae503f0a
Take font line height into account for bottom toolbar
2017-12-27 14:54:09 +01:00
Aaron van Geffen
759c51bbad
Fix #6869 : incorrect Map button appearance in Guest List.
...
* Fixes the map button overlapping with the new search icon.
* Fixes the map button not being repositioned when the window is resized.
2017-12-27 14:51:17 +01:00
Michał Janiszewski
ad687a7ecf
Remove use of problematic __DATE__ and __TIME__
...
Replace with a placeholder to be filled by external tools
2017-12-27 14:50:42 +01:00
Aaron van Geffen
4455925fcb
Move braces to follow code style.
2017-12-27 13:18:24 +01:00
Aaron van Geffen
10ed48611c
Refactor bottom toolbar: hex to dec, apply macro.
...
This was one of the few windows that had its widget positions defined in
hexadecimals rather than decimals.
The logic was further obscured by using a macro to offset an experimental
change to accomodate longer dates. This change has been widely embraced,
so this patch applied said macro to improve legibility.
2017-12-27 13:18:07 +01:00
Michael Steenbeek
6d5dd061d7
Fix crash when opening object selection
2017-12-27 13:17:09 +01:00
Michał Janiszewski
8fdec42ff9
Remove redundant declarations
2017-12-26 22:16:03 +01:00
Michał Janiszewski
c4c5439943
Add missing include guards
2017-12-26 22:16:03 +01:00
Michał Janiszewski
b574c23172
Fix function declaration
2017-12-26 18:09:00 +01:00
Michał Janiszewski
8089cadc40
Reduce code duplication
2017-12-26 18:08:56 +01:00
Hielke Morsink
5396883a86
Make map_can_construct_at check for clearance cheat
2017-12-26 16:16:06 +01:00
Hielke Morsink
4ec213f680
Allow building through water with clearance disabled
2017-12-26 16:16:06 +01:00
Michał Janiszewski
fe55ed6f64
Add missing include guards
2017-12-26 11:44:41 +01:00
Marijn van der Werf
a29c4f49a0
Add function description
2017-12-25 15:06:06 +01:00
Marijn van der Werf
6251577305
Refactor direct access to window list
2017-12-25 15:06:06 +01:00
Marijn van der Werf
6493427011
Clean up window classification comparison
2017-12-25 15:06:06 +01:00
Marijn van der Werf
0048ef091f
Refactor direct access to window list
2017-12-25 15:06:06 +01:00
Park Joon-Kyu
bbf5571c17
Allow filtering guests by name ( #6633 )
2017-12-25 12:17:37 +01:00
Aaron van Geffen
d768a467b7
Implement std::string variant of TrimStart; add tests.
...
This also makes String::TrimStart handle all-whitespace strings.
2017-12-25 00:30:21 +01:00
Aaron van Geffen
4bc2ad18c4
Trim ideographic spaces as well.
2017-12-25 00:30:21 +01:00
Aaron van Geffen
6c26009f19
Fix #6097 : String::Trim wasn't taking multibyte chars into account.
...
Extends StringTest with multibyte tests.
NB: ストリング is a katakana transcription of 'string'.
2017-12-25 00:30:21 +01:00
Aaron van Geffen
54e6ffdbdd
Fix #6860 : Intensity and nausea ratings are too high in build menu.
2017-12-23 00:13:33 +00:00
Michael Steenbeek
c846d98516
Fix English descriptions of path additions and banners
2017-12-22 16:59:11 +01:00
Michael Steenbeek
2e79aaf54c
Fold vehicle name into regular name
2017-12-22 15:28:41 +01:00
Aaron van Geffen
558cc07cb0
Implement CP949 to UTF-8 conversion for Korean.
2017-12-22 14:51:21 +01:00