Commit Graph

5356 Commits

Author SHA1 Message Date
Ted John b4b3dc7dbe add global macro: gParkValue 2016-04-23 01:50:12 +01:00
Ted John 0971d8ad51 add global macro: gParkRating 2016-04-23 01:47:03 +01:00
Ted John fda4542d63 add global macro: gParkName 2016-04-23 01:40:11 +01:00
Ted John 2b702d89c6 add global macros: gLandPrice, gConstructionRightsPrice 2016-04-23 01:37:10 +01:00
Ted John 171388e9a3 integrate park entrance ghost variables 2016-04-23 01:21:00 +01:00
Ted John b59f5c17ca add global macros for park...
- gParkSize
- gParkEntranceFee
- gNumGuestsInPark
2016-04-23 01:00:00 +01:00
Ted John 307cb9e08b add global macro: gParkFlags 2016-04-23 00:51:22 +01:00
Ted John ddd0f07127 fix #3321: can't rotate pre-built rides 2016-04-22 23:59:16 +01:00
Ted John 85c553dc72 fix #3393: prevent crash when title music can't load 2016-04-22 23:46:58 +01:00
Ted John 6a1500a1af Merge pull request #3320 from OpenRCT2/rct1-import
Import RCT1 saved games / scenarios
2016-04-22 22:14:14 +01:00
Wirlie 1112112157 Revert uint assignment from 7eb3a90.
For solve the another problem (the reason of that this code has been modified at 7eb3a90), I replaced the left shift operator with a multiply (suggested by zsilencer) to prevent a 'undefined behaviour', Fixes #3367.
2016-04-22 16:00:05 -05:00
Ted John e9f755c947 Merge pull request #3385 from janisozaur/highscores
Don't parse invalid names from highscores fixes #3333
2016-04-22 21:16:00 +01:00
Michał Janiszewski 65ca8b9cb1 Test for object validity
Apparently it can fail for some:
https://openrct2.org/forums/topic/1175-wont-open-on-mac/#comment-5742
2016-04-22 22:07:42 +02:00
Michał Janiszewski 9956b804d2 Don't parse invalid names from highscores fixes #3333 2016-04-22 22:07:42 +02:00
Ted John a6ca76813d rename import.h and remove includes 2016-04-22 20:14:29 +01:00
Ted John 25958b0d30 remove old RCT1 import code 2016-04-22 19:26:15 +01:00
Ted John 67da464e08 use correct logic for function name 2016-04-22 18:39:00 +01:00
Ted John bed916e4aa use correct constant 2016-04-22 18:37:04 +01:00
Ted John 3992ca22e4 import lots of game variables 2016-04-22 18:26:29 +01:00
Ted John 6a48bed4ad organise order of preset scenery groups and paths 2016-04-22 18:26:28 +01:00
Ted John ff1de46ca6 improve List::AddRange performance 2016-04-22 18:26:28 +01:00
Ted John f3356caa39 add a CLI command for converting saved games <-> scenarios 2016-04-22 18:26:27 +01:00
Ted John a438e7be24 fix queue colours 2016-04-22 18:25:29 +01:00
Ted John 6086771988 extract code to new method 2016-04-22 18:25:28 +01:00
Ted John fb192bba0e prevent adding duplicate footpath entries 2016-04-22 18:25:28 +01:00
Ted John 228af15a30 add path object import 2016-04-22 18:25:27 +01:00
Ted John b888466fa1 fix loading of AA/LL scenarios 2016-04-22 18:25:26 +01:00
Ted John 486c10a9f1 add RCT1 path type enums 2016-04-22 18:25:26 +01:00
Ted John 26ce06a1c7 only import required path additions 2016-04-22 18:25:25 +01:00
Ted John 9d44aaa8a8 fix broken path additions import 2016-04-22 18:25:24 +01:00
Ted John c6615b942e fix fences type mapping 2016-04-22 18:25:23 +01:00
Ted John b93429052c fix more import bugs 2016-04-22 18:25:23 +01:00
Ted John 7401b5cf39 import default objects and themes 2016-04-22 18:25:22 +01:00
Ted John 92973c692d import more flags and finance correctly 2016-04-22 18:25:21 +01:00
Ted John ba90d2a55a fix RCT1 vehicle object table 2016-04-22 18:25:21 +01:00
Ted John 512ed6ce98 fix compile issues and bugs 2016-04-22 18:25:20 +01:00
Ted John 7754204a25 finish conversion of RCT1 import to c++ 2016-04-22 18:25:19 +01:00
Ted John cf7b81fd3a start moving RCT1 importer to C++ 2016-04-22 18:24:54 +01:00
Ted John 72e625c5a3 import research list as best as possible 2016-04-22 18:23:57 +01:00
Ted John 88a26f17b0 refactor colours, use constants 2016-04-22 18:23:57 +01:00
Ted John 17abf1d970 use localised strings for RCT1 scenarios 2016-04-22 18:23:55 +01:00
Gymnasiast 086ba6909f Fix Junior RC import, use constants 2016-04-22 18:23:55 +01:00
IntelOrca 3c347c2e10 fix rebase / compile error 2016-04-22 18:23:54 +01:00
Gymnasiast 41a84e899b Import with correct launch mode, better grey roof replacement 2016-04-22 18:23:53 +01:00
Gymnasiast e7c7dcda61 Import banners correctly, use some constants 2016-04-22 18:23:52 +01:00
Gymnasiast f3ec92a426 Initial support for importing SV4 and importing more park flags 2016-04-22 18:23:52 +01:00
Gymnasiast 705f264cf8 Import music, entrance style, some flags and park open status 2016-04-22 18:23:51 +01:00
Gymnasiast e27e0611ae Fix vehicles in imported S4's not leaving the station 2016-04-22 18:23:50 +01:00
Gymnasiast c72a4caa75 Fix number of trains and number of cars per train 2016-04-22 18:23:50 +01:00
Gymnasiast 15d077410e Fixed object selection and lift hill speeds 2016-04-22 18:23:49 +01:00
Gymnasiast 6ba69c52ca Use a define to specify the default vehicle should be used 2016-04-22 18:23:48 +01:00
Gymnasiast caefc1d9cc Define RCT1 vehicles as constants and use a lookup table 2016-04-22 18:23:48 +01:00
Gymnasiast 74d0c2aed8 Fix import of alternative vehicles 2016-04-22 18:23:47 +01:00
duncanspumpkin 3b2fade400 Fix rebase issues 2016-04-22 18:23:46 +01:00
Gymnasiast 2d3dfd8834 Move RCT1 file version detection to its own function 2016-04-22 18:23:46 +01:00
Gymnasiast a28ba1d4d8 Also take AA in account when importing merry-go-rounds and make version detection more robust 2016-04-22 18:23:45 +01:00
Gymnasiast 5ad1c224a6 Fix import of Merry-go-round colours 2016-04-22 18:23:44 +01:00
Gymnasiast 8169969756 Fix typo 2016-04-22 18:23:43 +01:00
IntelOrca 1873d659a9 RCT1 import: import vehicle colours, scenario descriptions and animations 2016-04-22 18:23:43 +01:00
IntelOrca 3e9d56a284 RCT1 import: fix for Junior Roller Coaster 2016-04-22 18:23:42 +01:00
IntelOrca e319df533e rct1 import, fix peeps entering rides 2016-04-22 18:23:41 +01:00
IntelOrca 0e1f0cbbe8 improve RCT1 ride import 2016-04-22 18:23:41 +01:00
IntelOrca a90a59c39c rct1 import: fix colouring 2016-04-22 18:23:40 +01:00
IntelOrca f0382b9ab2 implement import of rct1 scenarios, part 1 2016-04-22 18:23:40 +01:00
Marijn van der Werf 7728a96e96 Update signature 2016-04-22 14:05:51 +02:00
janisozaur 7d2e62ba56 Fix typo introduced in 288d11a, fixes #3376 (#3379)
See https://sourceforge.net/p/predef/wiki/Architectures/

This reverts commit 67a86fe22f.
2016-04-22 07:59:50 +01:00
Ted John 2329972b58 Merge pull request #3371 from Broxzier/no_money_checks
Check the no money flag in more places in case the price field is not free.
2016-04-22 00:00:40 +01:00
Ted John 571907eabb Merge pull request #3374 from IntelOrca/feature/file-associations
Register file associations on Windows
2016-04-21 23:55:14 +01:00
Ted John 57301def05 disable register-shell for mingw 2016-04-21 23:48:58 +01:00
Ted John 3f1e49d510 use unicode for registering file associations 2016-04-21 23:03:25 +01:00
Ted John c51f9a8ecc register file associations on Windows 2016-04-21 21:41:53 +01:00
Michał Janiszewski b7f9af41a8 Only initialize structs with compile-time consts
See https://stackoverflow.com/a/32584666
2016-04-21 22:20:24 +02:00
Michał Janiszewski 288d11a196 Add platform define for x86 2016-04-21 22:18:59 +02:00
Marijn van der Werf bdfa1c2a83 Implement Dodgems track drawing 2016-04-21 21:15:13 +02:00
Ted John b499a4589f embed OpenRCT2 icon for Windows (#3372)
Embeds the OpenRCT2 icon file using Win32 native resources and sets the window icon to it.
2016-04-21 19:17:26 +01:00
Hielke Morsink 87953f34db Checking for no_money flag when checking ride price 2016-04-21 19:21:09 +02:00
Hielke Morsink 09688b427e Fix #3238 - Guest refusing to pay that much in no money scenarios 2016-04-21 19:09:41 +02:00
duncanspumpkin d7cd3d0662 Fix #3345. Put banners back in their bounding box. 2016-04-21 17:19:16 +01:00
Marijn van der Werf 701dd77b54 Decompile paint function for rides 50, 52, 53, 54 2016-04-21 15:05:47 +02:00
Wirlie 407359e82b Fix #3318. Mine/Mouse train now can swing on turns. 2016-04-20 22:32:36 -05:00
janisozaur 7eb3a90cea Fixes for values being shifted (#3362) 2016-04-20 23:57:54 +01:00
Ted John 60ac228c51 Merge pull request #3277 from IntelOrca/refactor-twitch
Refactor and clean up twitch.cpp
2016-04-20 22:12:57 +01:00
Gymnasiast 548bee8325 Fix formatting and rebase 2016-04-20 20:14:07 +02:00
Marijn van der Werf 75627105c6 Clean up crooked house 2016-04-20 20:06:19 +02:00
Rune Laenen e0c103031e Add shortcut to mute sound 2016-04-20 19:56:57 +02:00
IntelOrca f10d79c63c refactor and clean up twitch.cpp 2016-04-20 18:11:07 +01:00
IntelOrca 4b2776f266 move code from Diagnostics and Guard to cpp 2016-04-20 18:11:06 +01:00
janisozaur e9bf2a742f widget_index is sint16, make sure the check is valid (#3335) 2016-04-20 18:08:05 +01:00
IntelOrca 94ecc1da40 fix #3282: improve launched freefall ratings
When the ride mode is in downward launch mode, the intensity and nausea were fixed regardless of how high the ride is. To improve the rating calculations, alter the ratings in a similar fashion to roto-drop which is a similar mechanic.
2016-04-20 17:33:55 +01:00
janisozaur 44717cfe2a Add console command to set ride type (#3273) 2016-04-20 12:37:31 +01:00
Marijn van der Werf 8fc897522b Clean up paint setup rotation (#3343)
* Use passed rotation
* Replace fixed 0 rotations
2016-04-20 12:33:42 +01:00
zsilencer 3ba7d54247 Fix reconnect issue caused by inboundpacket not being cleared 2016-04-20 01:49:16 -06:00
zsilencer 0ceff7fd90 More efficient map transfers 2016-04-20 01:49:15 -06:00
zsilencer 82e02e7cf8 String ids got switched around from the language files. 2016-04-20 01:49:15 -06:00
zsilencer e742e96461 Fix bug that gave error when trying to join saved server 2016-04-20 01:49:15 -06:00
zsilencer e582a8f47f Stop constantly resizing vector 2016-04-20 01:49:15 -06:00
zsilencer b257e431d9 Get rid of using user_strings for interface 2016-04-20 01:49:15 -06:00
Ted John 3405fd5bad fix #3352: assertion trigger while fixing tiles
Remove assertion and add warning message instead.
2016-04-19 23:14:02 +01:00
Michał Janiszewski fb8646e66f Fix typo in variable name 2016-04-19 21:15:48 +02:00
Michał Janiszewski b2a3b82d08 Show network version to client if mismatched
This will let players know which version should they be using to connect
to server. Also prevents users from even trying to join servers running
versions we already know are incompatible.
2016-04-19 21:15:23 +02:00
Michael Steenbeek 423844c2fb Don't open the New Ride window when in the Scenario Editor, fixes #3344 (#3349) 2016-04-19 19:37:35 +01:00
Ted John cec7e54dd8 Merge pull request #3325 from Broxzier/rotate_map_elements
Rotate map elements
2016-04-19 19:37:19 +01:00
Michael Steenbeek b13d0aa2d3 Fix ride window height definition, fixes #3347 (#3348) 2016-04-19 19:08:24 +01:00
Hielke Morsink 2713c999c5 Cleaning up and updated changelog 2016-04-19 19:25:31 +02:00
Hielke Morsink d08dd70406 Static functions. 2016-04-19 19:25:29 +02:00
Hielke Morsink fd7fe4ed5a Fix redraw issue when clicking on a list item. 2016-04-19 19:25:28 +02:00
Hielke Morsink 6fbdb46d37 Enabling and disabling the rotation button based on selected element type. 2016-04-19 19:25:27 +02:00
Hielke Morsink 992a830622 Fix: Invalidating tiles correctly from the tile inspector. 2016-04-19 19:25:25 +02:00
Hielke Morsink 048b7ff30c Added button to reotate map elements in tile inspector - closes #3106 2016-04-19 19:25:24 +02:00
Ted John cf628ea7cf Merge pull request #3152 from dlee13/cheat-disable-littering
Add cheat to disable littering and refactor peep thought code.
2016-04-19 17:31:58 +01:00
Derek Lee 4d1153669e Refactor peep code
Use constants rather than magic numbers and make identifiers consistent
2016-04-18 23:34:11 -07:00
Derek Lee c4226235e3 Add cheat to disable littering
Add cheat and increment NETWORK_STREAM_VERSION
2016-04-18 23:34:10 -07:00
Duncan 385b03ec79 Merge pull request #3170 from marijnvdwerf/maze-paint-setup
Maze paint setup
2016-04-19 06:27:08 +01:00
janisozaur 0b9b976dd6 Cast peep's arguments properly (#3341)
Left-hand side of shift operator determines what's the resultant size of
whole expression. Consider this:

    uint16 p = 65535;
    uint32 q = p << 16;

`q` will be an undefined result, as it will not fit in `uint16` type
anymore, and compiler can optimise it away, unless you cast `p` to be
something which can hold such value, in this case `uint32`.
2016-04-18 23:02:08 +01:00
Ted John ec50198fa4 Merge pull request #2535 from Gymnasiast/allow-ownership-map-edges
Allow setting ownership of map edges
2016-04-18 22:59:58 +01:00
Duncan 1187b0c534 Merge pull request #3334 from marijnvdwerf/fix-3326
Fix #3326
2016-04-18 22:08:49 +01:00
Marijn van der Werf 6e3375a3d4 Small fixes 2016-04-18 21:18:48 +02:00
Marijn van der Werf 90a7abbbdb Update code 2016-04-18 21:09:59 +02:00
Marijn van der Werf 7a409371c8 Implement sub_88ABA4 2016-04-18 20:39:15 +02:00
Marijn van der Werf 14caf2c1ca Paint crooked house base 2016-04-18 20:39:14 +02:00
Hielke Morsink 1dbd313fb4 Moved logic from window to map, inside loops that already existed. 2016-04-18 20:28:34 +02:00
Hielke Morsink 15727b68a9 Recalculating the fences when resizing the map 2016-04-18 20:28:34 +02:00
Gymnasiast ed9334f944 Rename sub_68AE2A to clear_elements_at 2016-04-18 20:28:34 +02:00
Gymnasiast 01c4c0adc5 Allow setting ownership of map edges 2016-04-18 20:28:34 +02:00
Marijn van der Werf d54f1f58ff Update to match new signature 2016-04-18 20:21:04 +02:00
Marijn van der Werf b3f3651bd1 Compress switches 2016-04-18 20:21:03 +02:00
Marijn van der Werf b045953256 Implement Spiral Slide drawing 2016-04-18 20:21:03 +02:00
Marijn van der Werf c1572f4f58 Update method signature 2016-04-18 20:20:41 +02:00
Marijn van der Werf d8c952d503 Clean up code 2016-04-18 20:20:41 +02:00
Marijn van der Werf db302b89a1 Fix wrong value 2016-04-18 20:20:40 +02:00
Marijn van der Werf 85087f8a86 Draw maze tracks 2016-04-18 20:20:40 +02:00
Duncan 0860cf4540 Merge pull request #3299 from marijnvdwerf/paint-setup/cleanup
WIP Paint setup/cleanup
2016-04-18 18:48:53 +01:00
Marijn van der Werf e49abad3ff Rename local variables 2016-04-18 15:36:15 +02:00
Marijn van der Werf a610b372fd Name addresses 2016-04-18 15:35:33 +02:00
Marijn van der Werf d78077ce22 Convert method call to sub_98197C 2016-04-18 15:34:06 +02:00
Marijn van der Werf 6b951400a5 Fix #3326: Match original implementation of sub_67933B 2016-04-18 12:59:53 +02:00
janisozaur 24eaa0a56d Show units used when streaming the map over network. Fix #3328 (#3331) 2016-04-17 21:27:23 +01:00
Yaroslav Tretyakov c3ba519a6e Integrate audio related variables (#3322) 2016-04-17 14:20:26 +01:00
Marijn van der Werf eabbdb7e30 Identify structure members 2016-04-17 10:31:50 +02:00
Marijn van der Werf 18a36298b4 Update method signature 2016-04-17 09:42:34 +02:00
Ted John e5666f214b Merge pull request #3313 from IntelOrca/integrate-ride-session-vars
Integrate ride construction session variables
2016-04-16 14:10:05 +01:00
Yaroslav Tretyakov 90a4cafc87 Fix #3307, ride music discrepancy with original (#3319) 2016-04-16 14:09:22 +01:00
Ted John 63f008566c Merge branch 'master' into develop 2016-04-15 23:25:45 +01:00
Ted John 1eb91cb210 OpenRCT2 0.0.4 (stable) 2016-04-15 22:42:57 +01:00
Ted John e906ab5e95 enable quick save when loading save by command line 2016-04-15 21:52:15 +01:00
Harry Lam 0a65c13e7e Change Japanese Font from msgothic_02.ttf to ms...
gothic.ttc, Fix #3118

In Chinese, there is also a newer MingLiu called "PMingLiu", but it was embedded as a large text pack as ttc. (ttc is a collection file for TrueType Font) And, Windows has **bad** support on TTC, so changing into "msgothic.ttc" should fix the issue.
2016-04-15 21:25:11 +01:00
Ted John faa2fb4fa1 fix #3314: save custom objects when quick-saving 2016-04-15 21:22:23 +01:00
Ted John 7b248f0079 integrate ride construction variables
- _currentTrackPrice
- _numCurrentPossibleRideConfigurations
- _numCurrentPossibleSpecialTrackPieces
- _currentTrackCurve
- _currentTrackEndX
- _currentTrackEndY
- _rideConstructionState
- _currentRideIndex
- _currentTrackBeginX
- _currentTrackBeginY
- _currentTrackBeginZ
- _currentTrackPieceDirection
- _currentTrackPieceType
- _currentTrackSelectionFlags
- _rideConstructionArrowPulseTime
- _currentTrackSlopeEnd
- _currentTrackBankEnd
- _currentTrackLiftHill
- _currentTrackCovered
- _previousTrackBankEnd
- _previousTrackSlopeEnd
- _previousTrackPieceX
- _previousTrackPieceY
- _previousTrackPieceZ
- _currentSeatRotationAngle
2016-04-15 20:56:48 +01:00
Ted John 681961eaec change ride construction addresses to defines 2016-04-15 20:35:27 +01:00
Ted John f73e3ab0e1 integrate footpath construction variables
- uint8 gFootpathProvisionalFlags
- rct_xyz16 gFootpathProvisionalPosition
- uint8 gFootpathConstructionMode
- uint16 gFootpathSelectedId
- uint8 gFootpathSelectedType
- rct_xyz16 gFootpathConstructFromPosition
- uint8 gFootpathConstructDirection
- uint8 gFootpathConstructSlope
- uint8 gFootpathConstructValidDirections

Also fix some previous variable integrations that had been forgotten to change.
2016-04-15 19:16:48 +01:00
Ted John 84edd049d9 integrate current tool variables:
- gCurrentToolId
- gCurrentToolWidget
2016-04-15 18:26:47 +01:00
janisozaur fb5d281eaf Check return value from realpath(). Fixes #2483 (#3309) 2016-04-15 18:17:45 +01:00
Ted John 1b3f46f960 integrate game command error string variables
- gGameCommandErrorTitle
- gGameCommandErrorText
2016-04-15 17:54:46 +01:00
IntelOrca 89ad0cc769 store windows in openrct2 memory and increase max
Allocate a bigger window list and viewport list in OpenRCT2 static memory and move over all references from RCT2.
This also removes the 'active' viewport pointer list and instead changes everything to just enumerate the whole viewport list
2016-04-14 23:00:35 +01:00
duncanspumpkin 6e4b93a011 Fix #3301. Refactor set_ride_price to prevent pointing at invalid memory. 2016-04-14 20:36:25 +01:00
duncanspumpkin 51ba0b2e1d Fix #3302. Max ride mode tweak has been broken since a refactor. 2016-04-14 20:27:09 +01:00
IntelOrca de79bd4599 fix #3294: crash when closing a window being dragged 2016-04-14 17:41:06 +01:00
Marijn van der Werf cb9b31f873 Remove leading whitespace 2016-04-14 11:53:20 +02:00
Marijn van der Werf 0e5b32bd56 Inline variables 2016-04-14 11:17:39 +02:00
Marijn van der Werf 3bb2214235 Pass 0x009DEA52-0x009DEA56 as parameters 2016-04-14 11:07:41 +02:00
Marijn van der Werf a6cbd392c6 Add parameter to 9c 2016-04-14 10:08:40 +02:00
Marijn van der Werf e529532ddd Add parameters to sub_98198C 2016-04-14 10:02:17 +02:00
Marijn van der Werf 001dd3bcf6 Fix wrong function call 2016-04-14 09:59:01 +02:00
Michał Janiszewski da80a691bc Start 0.0.5
changelog.txt not updated yet
2016-04-13 14:20:40 +02:00
Duncan 9edd48c4b8 Merge pull request #3231 from marijnvdwerf/use-structs
Clean up data use
2016-04-13 12:38:58 +01:00
Duncan 945f9ddc8e Merge pull request #2994 from marijnvdwerf/decompile-679074
Decompile sub_679074
2016-04-13 12:37:57 +01:00
duncanspumpkin 2df58747e5 Update version.h to rc1 2016-04-12 20:49:35 +01:00
duncanspumpkin b0fb2451b4 Fix #3286. Top Spin front support draws correctly now.
Issue caused by mistake when changing the parameter orders of the drawing functions
2016-04-12 20:14:12 +01:00
duncanspumpkin 08de41bdd5 Fix #2710. Chairlifts no longer crash at large y value stations. 2016-04-12 19:28:27 +01:00
duncanspumpkin be8c84f1c1 Fix grass growth mistake
Nibbles are only 4 bits not 8
2016-04-11 20:04:03 +01:00
IntelOrca 547837f208 fix warnings in crash.cpp 2016-04-10 19:51:44 +01:00
IntelOrca 37d759ffb7 fix #3268: water tool sound even when no change 2016-04-10 13:05:16 +01:00
wolfreak99 1947b1dd30 require special permission for cluster building, closes #3045 2016-04-10 11:52:34 +01:00
IntelOrca f955d03206 fix twitch !news feature 2016-04-10 11:08:09 +01:00
duncanspumpkin f251ddd5a9 Fix grass growing underneath objects. 2016-04-10 10:14:06 +01:00
duncanspumpkin b023d1a9ac Fix #3267. Two bugs fixed grass length detected and activity timeout.
The grass length detection had been simplified but failed to account for the upper bits being used as none graphical grass length changes. This caused mown grass to be detected as unmown.
Most staff functions have an activity timeout to prevent them from repeatedly doing activities in the exact same location. Mown grass did not have this timeout reset in the original game. The reset has now been removed.
2016-04-10 08:21:36 +01:00
IntelOrca 51a7e3f278 clean up and refactor the crash handler 2016-04-10 01:00:31 +02:00
Michał Janiszewski 9e2610fc08 Switch dump format to MiniDumpWithDataSegs 2016-04-09 20:47:31 +02:00
Hielke Morsink 46fb82fd91 Fix interface redifinition warning. 2016-04-09 19:40:57 +02:00
Michał Janiszewski 17bc485fb5 Breakpad for windows
This enables breakpad Windows support **only**.

The scope of this was limited to allow for inclusion into 0.0.4 release.
Breakpad for now is a Windows-only functionality, as this platform has
largest audience and is the only one that has no system-provided stack
tracing utility.

Upon crash, breakpad will try to create a dump and save current game,
present user with some vital information, then open explorer on the
created files for user convenience, asking him/her to create a new
issue with OpenRCT2 on Github.
2016-04-09 18:57:14 +02:00
Michał Janiszewski e28de49a34 Breakpad integration
Provide your own breakpad and point cmake at it.

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
mkdir breakpad && cd breakpad
../depot_tools/fetch breakpad # edit the script to use python2
cd src
LDFLAGS="-m32" CXXFLAGS="-m32" CFLAGS="-m32" CPPFLAGS="-m32" ./configure
LDFLAGS="-m32" CXXFLAGS="-m32" CFLAGS="-m32" CPPFLAGS="-m32" make -j 8

Run cmake on openrct2:
cd openrct2
vim CMakeLists.txt # provide your path to breakpad
mkdir build && cd build
cmake ../ -DWITH_BREAKPAD=ON
make -j 8
./openrct2 # open a game, select "about openrct2", crash
2016-04-09 18:57:14 +02:00
IntelOrca 8494eb9ff3 fix ride list dropdown, re-regression of #2080 2016-04-09 14:04:09 +01:00
IntelOrca a275649786 fix #3266: too high message given instead of too low
caused by Z parameter not being correctly converted to a signed int 16.
2016-04-09 12:52:12 +01:00
IntelOrca cfecbed003 fix mistake in destination_tolerence logic
still not convinced it fixes issue #3249 completely, but probably improves it.
2016-04-08 20:48:53 +01:00
janisozaur b8fc3b2dc7 Fix missing path separator in error message (#3247) 2016-04-07 17:44:21 +01:00
Matte A e934d56a89 Fix colliding strings 2016-04-06 21:04:32 +02:00
duncanspumpkin 90dbefeac2 Potential fix to #3249.
Unsure if this is the only issue with it
2016-04-06 19:25:30 +01:00
Nubbie 3017607521 Add 3 MORE descriptions for cheats 2016-04-06 18:08:14 +01:00
duncanspumpkin a8efcef15b Fix issue with handymen finding litter on the z axis different to vanilla
Issue caused by implementation mistake. Fixes remaining issue of #3125.
2016-04-04 19:17:32 +01:00
Nubbie 68d21e22a1 Improve descriptions for cheats
Note: Language IDs have changed slightly
2016-04-04 17:35:05 +01:00
YJSoft c5ff5a3ce9 fix #3234 native open window crash problem at OSX
since default_filename will be null at opening(code set default_filename only at save), setting filePath with default_filename will raise exception.

Fixed by setting filePath, basename only at save(since two vars only used at creating nameFieldStringValue) and setting directory with initial_directory at opening.
2016-04-04 07:25:33 +01:00
Michał Janiszewski 83a543c86f Make sure shifted value can fit in uint32 2016-04-03 17:49:50 +02:00
Michał Janiszewski f5f2f62507 Cap dropdown items count to 64 2016-04-03 17:38:57 +02:00
Marijn van der Werf d809b81ac0 Include ride rating multipliers 2016-04-03 15:43:12 +02:00
janisozaur e61b6ffdde Cleanups, init variables 2016-04-03 14:21:50 +01:00
Marijn van der Werf 0fd42f408a Extract new struct 2016-04-03 14:53:17 +02:00
Marijn van der Werf e4fadc5a66 Include struct at `0x0097DD78` 2016-04-03 13:56:06 +02:00
Marijn van der Werf e9bd7e56fc Identify two used variables in `ride_data_4` 2016-04-03 04:11:21 +02:00
IntelOrca 8c6e5cd9ae fix #3224: Maze designs clear fences and walls 2016-04-02 23:52:05 +01:00
IntelOrca d626d9d5f2 fix removing of fences for normal tracks
Building track and track designs did not use correct flag for ghosts therefore always attempting to remove fences and the removing of intersecting fences also did not work correctly. Fix both issues.
2016-04-02 23:51:12 +01:00
IntelOrca 4f59c752d6 fix #3223: invalid vehicle type warnings when placing any track design 2016-04-02 23:23:34 +01:00
Hielke Morsink 62090cd936 fixes #1860 Litter bins fill up too fast 2016-04-02 22:32:56 +01:00
Marijn van der Werf 5369111580 Fix #3206: Round support costs properly 2016-04-02 15:27:23 +01:00
Ted John f02238e0a2 Merge pull request #3203 from marcovmun/Fix-3198
Fix vehicles appearing separate in the research tree, fixes #3198
2016-04-02 00:02:42 +01:00
Michał Janiszewski 888f485690 Allocate enough memory for server entries, fix #3144 2016-04-01 19:57:18 +02:00
Michał Janiszewski 331f9fe03b Secure memory accesses, initialise variables 2016-04-01 09:38:40 +02:00
IntelOrca 1c0a78ace2 fix #3204: can't right click track in unowned land 2016-03-31 22:56:13 +01:00
IntelOrca 6f2d91cc7e land and water now obey disable clearance, closes #3196 2016-03-31 21:57:22 +01:00
IntelOrca 1122bff8bc prevent double td6 extension 2016-03-31 20:48:27 +01:00
IntelOrca 16527e749a remove network type from loadsave
Fixes a crash that happened when loading a saved game from the start server window.
2016-03-31 20:42:21 +01:00
Michał Janiszewski 7eeb59b1aa Update Linux file dialogs 2016-03-31 20:41:51 +01:00
Gymnasiast 0b78653a10 Make Zenity pick up the first filter 2016-03-31 20:41:50 +01:00
IntelOrca 3fdf0d4bf6 re-introduce appending of extension to filename 2016-03-31 20:41:49 +01:00
IntelOrca 40fcfbb405 use localised strings for native file dialogs 2016-03-31 20:41:49 +01:00
LRFLEW 0f88beff7c Converted OSX native file dialog to new standard 2016-03-31 20:41:48 +01:00
IntelOrca d865e4d453 pass better data in struct to file dialog function 2016-03-31 20:41:47 +01:00
Marco van Munster 8db1f27534 Fix bug 3198 different vehicles research tree 2016-03-30 22:33:26 +02:00
IntelOrca 966291eda2 fix #3186: stop auto opening shops causing problems (once and for all) 2016-03-27 19:34:35 +01:00
IntelOrca d690ee6423 fix #3183: opening ride with construction window open
Issue caused with boat hire rides as there is usually a ghost station present when the construction window is open. This causes vehicles to be created in the ghost station. Fixed by closing the construction window before the vehicles are created for the ride.
2016-03-27 14:18:20 +01:00
IntelOrca e6ca13d32c fix #3181: key shortcuts work on multiplayer chat 2016-03-27 12:50:32 +01:00
IntelOrca b436ac9bc6 fix #3160: no land owned in rc designer 2016-03-26 15:41:58 +00:00
duncanspumpkin 9018120c17 Change order of parameters in image setup code. 2016-03-25 18:35:00 +00:00
IntelOrca 474f25c69a refactor handyman pathfind and fix additional small bug 2016-03-24 23:47:15 +00:00
Marco van Munster 1f069af961 Fix machanic crosses station 2016-03-23 22:10:19 +01:00
Duncan 79f2316a4c Merge pull request #3159 from janisozaur/develop
Don't crash when fixing a hacked ride
2016-03-23 18:26:16 +00:00
IntelOrca 1e390e4f13 fix mistake in refactor: flags -> uint32 2016-03-23 17:27:49 +00:00
Michał Janiszewski c33b8ccdc5 Don't crash when fixing a hacked ride 2016-03-23 16:10:55 +01:00
IntelOrca 74d96d86c0 fix #3158: close network status window doesn't abort 2016-03-22 23:27:49 +00:00
IntelOrca a2fda29d92 validate park entrances and land ownership tools 2016-03-22 22:55:13 +00:00
IntelOrca 0ed22f52dd validate vehicle type 2016-03-22 22:40:06 +00:00
IntelOrca 304fd4b84e validate all the other ride operation settings 2016-03-22 21:59:16 +00:00
IntelOrca 16e8609da3 add constants for ride setting id 2016-03-22 21:32:37 +00:00
IntelOrca 64442820b9 validate setting of ride operation mode 2016-03-22 21:12:11 +00:00
IntelOrca 3280bf7aeb fix #3125: handyman AI bug
Handyman AI would find the closest litter but then not actually use that closest litter to determine the direction but instead use the last litter in the sprite list.
2016-03-21 22:36:16 +00:00
Ted John 7348324d99 Merge pull request #3135 from duncanspumpkin/fix_3123
Fix #3123 and refactor of banner placement.
2016-03-21 21:27:46 +00:00
duncanspumpkin 8c7dfd3097 Revert #3147 and fix construction issue. Revert most of c7c1f86 and rework to prevent issues 2016-03-21 21:21:43 +00:00
IntelOrca 78f87cd86c fix screenshot command line 2016-03-20 18:13:17 +00:00
IntelOrca ad250d6ab0 fix #3151: Save any file with korean would corrupt save file 2016-03-19 13:56:33 +00:00
Michał Janiszewski 843014eac2 Silence compiler warning
Though this really should be taken care of properly, see
https://stackoverflow.com/questions/14562845/why-does-passing-char-as-const-char-generate-a-warning
2016-03-19 12:56:35 +01:00
IntelOrca cb9a4860f3 fix #3146: some utf8 strings were truncated on save
strncpy can't be used for RCT2 strings as its a mix of byte / widechar
2016-03-19 11:16:11 +00:00
Michał Janiszewski c1a413c298 Fix crash when opening canoes 2016-03-19 00:47:34 +01:00
IntelOrca 5c2c0c9c57 fix #3142: Localisation - Text out of borders 2016-03-16 18:17:24 +00:00
duncanspumpkin e30c2aeea8 Fix #3123 and refactor of banner placement.
This fix needs testing as it might mess up nested game commands.
2016-03-13 18:40:50 +00:00
duncanspumpkin a3efbad2ba Fix #3126. Go Karts now correctly choose lanes.
Issue caused by mistake in implementation. Old version could use the variable ride->num_vehicles but in the new version this variable is not incremented each loop so vehicleIndex has to be passed into the vehicle creation functions
2016-03-13 18:07:10 +00:00
IntelOrca 21e22a2747 reset last autosave time on game start / load 2016-03-13 15:43:03 +00:00
IntelOrca edf16d53d3 fix #1742: Non-ascii characters in scenario details not showing correctly 2016-03-13 15:33:38 +00:00
IntelOrca 50b52140ad fix #3133: Game Crashes when writing 'hide' into the console 2016-03-12 15:40:57 +00:00
duncanspumpkin a067113d52 Loop the check for data path until valid address given.
This is to prevent people from selecting the wrong address and then wondering why the game doesn't work. Related to #1648.
2016-03-12 14:01:46 +00:00
duncanspumpkin 14c1a88812 Fix #3117. Golf course crash fixed.
Issue caused by implementation mistakes
2016-03-12 07:56:03 +00:00
IntelOrca 1daa657657 fix #3091: Korean words corrupted if over byte limit 2016-03-10 18:48:00 +00:00