Commit Graph

4426 Commits

Author SHA1 Message Date
Michał Janiszewski d610fb5970 Remove call to 0x0040701D 2015-12-21 22:17:13 +01:00
Michał Janiszewski 5d227d8fc8 Safe handling of malformed server entries
Refuse to add a nameless server or one without version specified, but
allow description missing.
2015-12-21 22:14:24 +01:00
Michał Janiszewski 54424ea275 Remove old Linux workarounds
Verified working on my machine.
2015-12-21 21:52:42 +01:00
IntelOrca 3b7839c026 implement try_add_synchronised_station 2015-12-21 18:26:41 +00:00
duncanspumpkin 9d937b3475 Refactor of backwards get next track 2015-12-21 09:19:35 +00:00
LRFLEW 85800997c2 Fixed warnings in Xcode 2015-12-21 03:11:38 -06:00
LRFLEW e6f771ec90 Added newlines at end of files 2015-12-20 22:03:37 -06:00
LRFLEW 46e773736c Fixed trackpad-as-touchscreen on OS X 2015-12-20 21:12:14 -06:00
IntelOrca eab3e15182 improve touch positioning 2015-12-21 00:39:38 +00:00
IntelOrca 8bb8beee50 fix warnings in cmdline.c 2015-12-21 00:23:59 +00:00
Ted John 5d8cd60c8c Merge pull request #2520 from samdroid-apps/touch-as-cursor-try-2
Handle touch events
2015-12-20 22:50:05 +00:00
LRFLEW ff62a28ccd Fixed curl error in OS X bundles 2015-12-20 16:22:10 -06:00
Ted John e0ac85891b Merge pull request #2518 from LRFLEW/xcode
Added Xcode Project
2015-12-20 21:52:57 +00:00
duncanspumpkin e14fa03be1 Labelled remaining_distance. Relabelled acceleration/powered acceleration 2015-12-20 21:36:11 +00:00
duncanspumpkin c4d8b8c665 Fix sign issues with global constants. Fix fast backwards rides breaking speed calculations 2015-12-20 20:58:30 +00:00
LRFLEW 034bf5c6a5 Added Xcode Project 2015-12-20 14:53:40 -06:00
Gymnasiast dd460300ca Extend fast lift hill cheat and update description 2015-12-20 21:12:24 +01:00
IntelOrca 742fe96cda implement vehicle_can_depart_synchronised 2015-12-20 18:33:43 +00:00
IntelOrca 6825c8645f implement vehicle_update_swinging_car 2015-12-20 15:22:51 +00:00
IntelOrca 98178c2560 refactor callprocs in vehicle.c 2015-12-20 14:21:06 +00:00
IntelOrca c2c41ec118 implement steam_particle_create 2015-12-20 12:50:33 +00:00
IntelOrca 09ac928fd6 implement sub_6D63D4 2015-12-20 12:30:10 +00:00
Jonathan Haas 7149e1a4f5 Fix utf8_is_format_code 2015-12-20 12:28:44 +01:00
Jonathan Haas bf536ce7b7 Add one decimal place to SI velocities 2015-12-20 11:27:03 +01:00
Sam Parkinson 2852c02e0a Handle touch events
Natively on Linux, using OpenRCT2 with touch is impossible because
touch events are not handled by the game. They just don't do anything.

This commit handles touch events. A single touch represents a
press of the left mouse button. If it followed by another touch
within 300ms, a right mouse button event is emitted.  This timeout
is like that of mobile web browsers [1].

[1]  https://developers.google.com/web/updates/2013/12/300ms-tap-delay-gone-away?hl=en
2015-12-20 19:33:12 +11:00
IntelOrca 785d54aa04 fix #2502: Update current pressed footpath direction when camera rotates 2015-12-19 22:54:15 +00:00
IntelOrca 1ffc9a6355 fix problems with wooden_a_supports_paint_setup and refactor 2015-12-19 21:30:32 +00:00
IntelOrca 96b9a4ed18 implement wooden_a_supports_paint_setup 2015-12-19 20:11:04 +00:00
IntelOrca 0ec91d62b5 fix #2515 2015-12-19 20:09:37 +00:00
IntelOrca 57207bac34 refactor new track painter, reduce empty jump tables 2015-12-19 12:39:07 +00:00
IntelOrca 4f5f0820d5 fix track manage delete prompt window position 2015-12-19 12:17:42 +00:00
Ted John f93bc91510 Merge pull request #2462 from duncanspumpkin/fix_trackSave
Fix Track Saving
2015-12-19 12:13:03 +00:00
Ted John 3570319cce Merge pull request #2509 from janisozaur/openrct-data-path
Let user specify the data dir as cmdline option.
2015-12-19 00:06:45 +00:00
IntelOrca 3019b55415 implement facility_paint_setup 2015-12-19 00:06:31 +00:00
LRFLEW d91a82f6ea Added searching for OpenRCT2 data in OS X app bundle resources folder 2015-12-19 00:07:01 +01:00
Michał Janiszewski ea6fa2c82a Let user specify the data dir as cmdline option.
This adds --openrct-data-dir=<str> option to command line letting user
select where he wants OpenRCT2-specific data to be. By default the
search locations are:
* <exePath>/data (on all platforms)
* /var/lib/openrct2 (on Linux)
* /usr/share/openrct2 (on Linux)
2015-12-19 00:06:41 +01:00
IntelOrca 22b4df1a99 implement SI units for distance / speed measurement, closes #2496 2015-12-18 21:12:30 +00:00
Ted John 859c35574a Merge pull request #2510 from LinusU/trap-mouse
Trap mouse
2015-12-18 21:06:57 +00:00
duncanspumpkin 306855fd3e Fix doors corrupting elements 2015-12-18 21:05:49 +00:00
duncanspumpkin 0f3fe73e63 Fix more vehicle bugs. Changed sub_6DD078 to change the collide vehicle 2015-12-18 20:33:45 +00:00
Linus Unnebäck e1938bb17a trap-mouse: cleanup 2015-12-18 09:13:26 +01:00
Rune Laenen 1a4ebcc0f7 Add option to trap mouse cursor 2015-12-18 09:13:26 +01:00
LRFLEW 8b63080aeb Some Objective-C Code Cleanup 2015-12-17 22:06:07 -06:00
duncanspumpkin 0364d0deb7 Fix vertical launch 2015-12-17 23:45:58 +00:00
duncanspumpkin 7f0f983f25 Fix block breaks 2015-12-17 23:12:08 +00:00
duncanspumpkin 2007c6c4dc Fix backwards bugs. Fix lift hill bug 2015-12-16 23:39:38 +00:00
duncanspumpkin 3c3dd963fa Rearrange of code to match cable lift layout 2015-12-16 23:01:22 +00:00
duncanspumpkin 46dbc17d72 Move remaining cable lift functions out of vehicle.c 2015-12-16 21:37:58 +00:00
LRFLEW d769a13206 Fixed extern and enum name usage 2015-12-16 14:48:27 -06:00
IntelOrca 12fdf1f5e7 name vehicle entry flags 2015-12-16 19:12:58 +00:00
IntelOrca 462d13fed2 move cable lift code into separate source file 2015-12-16 18:37:45 +00:00
Michał Janiszewski 7d132d8fe1 Extract and embed sections into binary itself
Fixed some CMakeLists.txt problems, made another target for converting
section images into something palatable by ld, modified the linker
script to place these ssection at predefined VMAs and updated openrct2.c
with new checks.
2015-12-16 19:16:27 +01:00
duncanspumpkin 53a1d93ec3 Fix infinite loop. Backwards still not working 2015-12-15 22:59:15 +00:00
duncanspumpkin 606014dfe6 Fix small bug introduced 2015-12-15 22:36:07 +00:00
duncanspumpkin 94f94d038c Refactoring of forward loop and fixing of small bugs 2015-12-15 22:32:11 +00:00
duncanspumpkin 37efbfd0a5 Refactor chunk_1 label functions 2015-12-15 18:56:19 +00:00
duncanspumpkin a406a4b344 Fix merge related bugs 2015-12-15 18:26:44 +00:00
duncanspumpkin 75b5946299 Refactor get_g_force and fix known signed/unsigned issues 2015-12-15 17:47:30 +00:00
Gymnasiast e2ccfc1cb8 Only check if ride mode exists when placing new track design, fixes #2445 2015-12-15 15:09:39 +01:00
Linus Unnebäck 4319e57024 use builtin min and max 2015-12-15 09:11:54 +01:00
Ted John aed5117384 Merge pull request #2489 from LinusU/locale-clang-fix
osx: fix locale issues
2015-12-15 08:04:47 +00:00
Linus Unnebäck 7ea7625db5 osx: correct modifier key 2015-12-15 08:34:33 +01:00
Linus Unnebäck 5d03fc3fb6 osx: fix locale issues 2015-12-15 08:22:08 +01:00
IntelOrca a941e67df6 fix vehicle-update after merge with sub_6DAB4C 2015-12-14 23:31:00 +00:00
Michał Janiszewski 98e204552a countof with type safety
For reference see http://www.g-truc.net/post-0708.html and
http://lxr.free-electrons.com/source/include/linux/kernel.h#L54

This will provide a type-safe mechanism for counting elements of array.
If you try passing something which cannot be counted, compiler will
frown at you right away.
2015-12-15 00:28:58 +01:00
duncanspumpkin c00669c942 Merge sub_6DAB4C into vehicle-update 2015-12-14 21:56:00 +00:00
Michał Janiszewski a5b465fad1 Fix some compiler warnings 2015-12-14 22:52:27 +01:00
duncanspumpkin 3fccb00040 Fix spelling mistake. Finished gForce calculations.
There are bugs in any loops due to unsigned/signed behaviour
2015-12-14 21:42:06 +00:00
Ted John bc104a82a9 Merge pull request #1931 from Gymnasiast/change-num-trains-without-retesting
Allow changing number of trains without retesting
2015-12-14 20:09:25 +00:00
IntelOrca 19679de125 implement sub_6D661F 2015-12-14 20:08:15 +00:00
IntelOrca e0af62ee8a implement vehicle_update_scenery_door 2015-12-14 15:28:46 +00:00
IntelOrca 490bdc85a6 implement sub_6DEDE8 2015-12-14 15:18:40 +00:00
IntelOrca 656bc61a6a implement more sub_6DAB4C 2015-12-14 15:18:39 +00:00
IntelOrca 89bcf50c76 implement more sub_6DAB4C 2015-12-14 15:18:39 +00:00
IntelOrca 83b15044c4 implement more sub_6DAB4C 2015-12-14 15:18:38 +00:00
IntelOrca 66a8a3f0cb implement more sub_6DAB4C 2015-12-14 15:18:37 +00:00
IntelOrca e3c1872d67 implement more sub_6DAB4C 2015-12-14 15:18:37 +00:00
IntelOrca 255e756e28 implement more sub_6DAB4C 2015-12-14 15:18:36 +00:00
IntelOrca 1e4f7c8875 implement more sub_6DAB4C 2015-12-14 15:18:35 +00:00
IntelOrca 8408351e07 implement more sub_6DAB4C 2015-12-14 15:18:34 +00:00
IntelOrca 2aeeb08af3 implement more sub_6DAB4C 2015-12-14 15:18:34 +00:00
IntelOrca 6a629adc24 implement more sub_6DAB4C 2015-12-14 15:18:33 +00:00
IntelOrca adcbfec413 name return flags for sub_6DAB4C 2015-12-14 15:18:32 +00:00
IntelOrca 4eee290947 use original hook code which works better for this branch 2015-12-14 15:18:32 +00:00
IntelOrca 22857ae370 implement more sub_6DAB4C 2015-12-14 15:18:31 +00:00
IntelOrca 3a538892ad implement more sub_6DAB4C 2015-12-14 15:18:30 +00:00
IntelOrca d718a51aed implement more sub_6DAB4C 2015-12-14 15:18:29 +00:00
IntelOrca 86ef1b0d49 implement more sub_6DAB4C 2015-12-14 15:18:29 +00:00
IntelOrca 3ecbfe6c68 implement more sub_6DAB4C 2015-12-14 15:18:28 +00:00
IntelOrca 12f0abd35e implement more sub_6DAB4C 2015-12-14 15:18:27 +00:00
IntelOrca 125a9a2b31 implement more sub_6DAB4C 2015-12-14 15:18:27 +00:00
IntelOrca c0a79b7604 implement more sub_6DAB4C 2015-12-14 15:18:26 +00:00
IntelOrca 9c25fd0105 implement more sub_6DAB4C 2015-12-14 15:18:25 +00:00
IntelOrca e5c83561e5 implement more sub_6DAB4C 2015-12-14 15:18:25 +00:00
IntelOrca d5d7956d42 implement more sub_6DAB4C 2015-12-14 15:18:24 +00:00
IntelOrca e8a78f0e2a implement more sub_6DAB4C 2015-12-14 15:18:23 +00:00
IntelOrca 1252ac6f7f implement more sub_6DAB4C 2015-12-14 15:18:22 +00:00
IntelOrca eaef1bf08e implement more sub_6DAB4C 2015-12-14 15:18:22 +00:00
IntelOrca 1527a443b8 implement more sub_6DAB4C 2015-12-14 15:18:21 +00:00
IntelOrca 65c129568d fix play sound calls for sub_6DAB4C 2015-12-14 15:18:20 +00:00
IntelOrca 5d2bd6b682 implement more sub_6DAB4C 2015-12-14 15:18:20 +00:00
IntelOrca 4f56709455 implement more sub_6DAB4C 2015-12-14 15:18:19 +00:00
IntelOrca 2df54c60d0 implement more sub_6DAB4C 2015-12-14 15:17:44 +00:00
IntelOrca 3280c24100 label update flags for vehicle 2015-12-14 15:17:43 +00:00
IntelOrca 9ffb9ec353 implement loc_6DAE27 2015-12-14 15:17:43 +00:00
IntelOrca adda80f4ba implement sub_6DAB4C_chunk_3 2015-12-14 15:17:42 +00:00
IntelOrca 05eac05fa9 implement sub_6DAB4C_chunk_2 2015-12-14 15:17:41 +00:00
IntelOrca 96575ba4d8 implement sub_6DAB4C_chunk_1 2015-12-14 15:17:41 +00:00
IntelOrca 9ad290463a prepare hook for sub_6DAB4C 2015-12-14 15:17:40 +00:00
Ted John 67f612c18c Merge pull request #2460 from janisozaur/scale-limit
Raise the lower limit for scale to 0.5f
2015-12-14 14:49:38 +00:00
Ted John df3bf363ca Merge pull request #2338 from Smeat/linux_get_locale
[Linux] Implement platform_get_locale_language.
2015-12-14 14:48:21 +00:00
Ted John 4fb73e4acb Merge pull request #2435 from samdroid-apps/ctrl-backspace-clear-inputs-try2
Implement CTRL-Backspace shortcut for clearing inputs, fixes #2355
2015-12-14 14:46:56 +00:00
IntelOrca de48ad3af6 fix warnings in cmdline.c 2015-12-14 14:45:54 +00:00
Ted John 8bfde1f948 Merge pull request #2472 from kkirby/bugfix/osx1010
Fix a bug where argv will be replaced by the argparse library.
2015-12-14 14:36:51 +00:00
Kyle Kirbatski c3185de49d Fix a bug where argv will be replaced by the argparse library.
The argparse library takes the input, assigns it to `this->output`, and then writes a null pointer to it. This causes issues on OS X 10.10 because AppKit tries to read the arguments passed to the application, which the first argument is null.
2015-12-14 07:19:06 -06:00
Michał Janiszewski 3bf659a9ea Include safe_strncpy declaration in linux.c
Fixes at least one of #2483
2015-12-13 23:09:59 +01:00
Duncan 0604068aac Merge pull request #2440 from LinusU/world-map-fixes
small fixes to world/map.c
2015-12-13 21:27:40 +00:00
Linus Unnebäck 017899c0d9 small fixes to world/map.c 2015-12-13 21:45:58 +01:00
Ted John 7007aef9cb Merge pull request #2480 from LinusU/proper-types
use stdint types
2015-12-13 18:24:12 +00:00
Linus Unnebäck a613de410a use stdint types 2015-12-13 19:01:54 +01:00
duncanspumpkin bed328503b Add remaining track types to acceleration function 2015-12-13 15:33:01 +00:00
Gymnasiast 1873e387ca Log an error if an unknown vehicle edit command is sent 2015-12-13 15:49:23 +01:00
Gymnasiast e9840b7488 Allow changing number of trains without retesting 2015-12-13 15:49:23 +01:00
IntelOrca 5c3bcda744 fix wrong output steam in cmdline_sprite 2015-12-13 00:28:25 +00:00
Kyle Kirbatski 2a8ed04eda Add platform dialog functions for OS X 2015-12-12 17:22:14 -06:00
Kyle Kirbatski 17766c4772 Rename osx.c to osx.m 2015-12-12 17:21:21 -06:00
Kyle Kirbatski 39ae4e2154 Extract dialog functions out of posix.c and into linux.c 2015-12-12 17:20:02 -06:00
duncanspumpkin be757f6379 Add missing track elem enum elements. 2015-12-12 21:07:46 +00:00
duncanspumpkin 1e72e9fb14 Started implementing get g forces 2015-12-12 20:25:20 +00:00
Duncan e953eed95b Merge pull request #2467 from kkirby/code-cleanup
Code cleanup
2015-12-12 20:13:29 +00:00
Kyle Kirbatski 4f03530e48 Clean up instances of 0x.. & 0x.. to 0x.., 0x.. 2015-12-12 14:08:09 -06:00
duncanspumpkin 846d69a772 Implement vehicle_update_bumper_car_collision 2015-12-12 17:59:03 +00:00
duncanspumpkin 5964b3768a Implement bumper car motion update 2015-12-12 14:55:05 +00:00
duncanspumpkin 45d1375b83 Implement vehicle_update_collision setup. Removed ride crash hook. 2015-12-12 12:21:13 +00:00
duncanspumpkin 90d006232b Change sign of var_24. Add missing cable lift data 2015-12-12 11:48:28 +00:00
Michał Janiszewski 93e2fa14e8 vehicle-fixes 2015-12-12 12:27:58 +01:00
Duncan 0a86b8c946 Merge pull request #2450 from janisozaur/mmap
POSIX: MAP_ANONYMOUS should have fd = -1
2015-12-12 08:23:50 +00:00
LRFLEW c2202f6260 Moved the configuration on OS X to ~/Library/Application Support/OpenRCT2 2015-12-11 18:02:58 -06:00
Kyle Kirby caf07c2064 Clean up the comments a litte
• Make comment heads be /**
• Make rct2 addresses be double spaced indented
• Make there be a space afte rct2: and the address
• Make single-line rct2 addresses be full block comments
• Move description of method to top of comment
2015-12-11 16:19:46 -06:00
duncanspumpkin 4b326f4569 Implement vehicle_update_crash_setup 2015-12-11 20:55:34 +00:00
duncanspumpkin c94d362077 Fix sound bugs 2015-12-11 20:26:26 +00:00
duncanspumpkin a372637bd8 Implemented vehicle_update_unloading_passengers 2015-12-11 17:35:24 +00:00
duncanspumpkin 0a8ef64a83 Fix some small bugs. Actually use arrive code 2015-12-11 15:49:21 +00:00
duncanspumpkin cd5a18b2c5 Implement vehicle_update_arriving 2015-12-11 15:28:07 +00:00
duncanspumpkin cbf859bffb Added vehicle_update_travelling_boat and vehicle_update_travelling_cable_lif 2015-12-11 13:07:22 +00:00
Kyle Kirby 8e5355640f Convert spaces to tabs 2015-12-11 06:28:35 -06:00
duncanspumpkin 9f1b38f337 Track saving was broken due to using wrong coordinates 2015-12-11 09:57:08 +00:00
LRFLEW c9be2e1bc9 Resolved struct packing error and crash on OS X 2015-12-10 17:29:58 -06:00
Michał Janiszewski d2117e966f Raise the lower limit for scale to 0.5f
Setting the scale to anything lower than 0.3f crashes the game on my
machine, although I don't know the exact reason of that.

The game at window_scale=0.1 is unusable anyway, as the interface is far
too small.
2015-12-11 00:15:17 +01:00
Kyle Kirbatski af382b1884 Switched to -sectcreate instead of mmap on OS X 2015-12-10 16:32:46 -06:00
Duncan 1456049dfb Fixed alignment of hook 2015-12-10 16:32:45 -06:00
Michał Janiszewski 1bafbde113 Shift segments in Mach-O to outside of required AS
Mach-O defaults to having .text segment starting at 0x1000 RVA, which
clashes with the address space required for mmap to work properly.

This change tells linker to move the segment outside of required AS, and
then some, so that mmap can properly allocate required addresses without
evicting anything else.
2015-12-10 16:32:45 -06:00
duncanspumpkin ce56b2c7f7 Aligned hook for better OS X support 2015-12-10 16:31:41 -06:00
Ted John 2ee71fc230 Merge pull request #2457 from LinusU/osx-small-fixes
OS X build fixes
2015-12-10 12:19:02 +00:00
Ted John c9c390fe3f Merge pull request #2454 from Gymnasiast/scale-factor-console
Add console option to set window scale, fixes #2356
2015-12-10 12:17:46 +00:00
Linus Unnebäck 894d2cd130 osx: define MAP_ANONYMOUS 2015-12-10 09:35:31 +01:00
IntelOrca ca01e55fa8 add show fps, #2223 2015-12-09 21:42:46 +00:00
Gymnasiast e61919565a Round window scale to 3 decimal places 2015-12-09 22:15:15 +01:00
Gymnasiast 7bebbe52a5 Add console option to set window scale 2015-12-09 18:43:33 +01:00
Ted John b234a69d3c Merge pull request #2452 from Gymnasiast/warning-to-verbose
Don't log warnings on finding files, only log to verbose instead
2015-12-09 15:32:12 +00:00
Gymnasiast e9737ebb61 Don't log warnings on finding files, only log to verbose instead 2015-12-09 15:54:49 +01:00
Gymnasiast cfe3d967f5 Use Arial for Polish, as the sprite font misses several Polish letters. 2015-12-09 15:50:15 +01:00
Michał Janiszewski 3d0fcc948d POSIX: use mincore to detect impending doom
Call to mmap (or next malloc) will likely fail if there are already
mapped pages within the region we want to map ourselves. Using mincore
we can detect if such pages exist and warn user about what's going to
happen.
2015-12-09 00:57:42 +01:00
duncanspumpkin e09e00c931 Label track_progress offset. Name cable lift motion update 2015-12-08 23:19:40 +00:00
Michał Janiszewski 8f82e5013a POSIX: MAP_ANONYMOUS should have fd = -1 2015-12-08 23:30:55 +01:00
IntelOrca 08fc36ee49 fix #2449: Turning off Day/Night Circle while it is night doesn't reset back to day 2015-12-08 20:50:30 +00:00
Ted John 176381b642 Merge pull request #2444 from jackinloadup/farris-wheel-backward-rotation
fixes #2126 Ferris wheel backward rotation
2015-12-07 17:54:45 +00:00
Lucas Riutzel 489d047c66 fix farris wheel breaking when set in backwards rotation 2015-12-07 10:40:53 -06:00
Duncan 2e9945a748 Merge pull request #2442 from LinusU/platform-osx-fixes
small fixes for platform/osx.c
2015-12-07 12:49:23 +00:00
Ted John 47e8c54b89 Merge pull request #2443 from LinusU/ride-track-fixes
use larger integers in ride/track.c
2015-12-07 08:13:04 +00:00
Linus Unnebäck 4bfbe27116 use larger integers in ride/track.c 2015-12-06 18:56:09 +01:00
Linus Unnebäck 16e5ace672 use RCT2_ADDRESS_TRACK_LIST 2015-12-06 18:49:35 +01:00
Linus Unnebäck fc849eb097 small fixes for platform/osx.c 2015-12-06 18:34:34 +01:00
Linus Unnebäck bd82b7a297 use RCT2_ADDRESS in track_manage.c 2015-12-06 18:22:33 +01:00
duncanspumpkin 80f034251e Fix remaining bugs in cable lift and warnings 2015-12-06 17:14:46 +00:00
duncanspumpkin 2e40ad2a35 Link up cable lift update code. Fix some bugs 2015-12-06 17:04:57 +00:00
duncanspumpkin 33a1560419 Implement more of cable lift update. Still requires proper linking up 2015-12-06 10:45:32 +00:00
Ted John 1d3cefe73d Merge pull request #2427 from xperia64/develop
Add symbolic link support
2015-12-05 21:34:44 +00:00
Kevin a18089145b [Linux] Check for null pointer in locale specific functions 2015-12-05 22:25:25 +01:00
Ted John e77537b27f Merge pull request #2396 from janisozaur/osx-path
Set path properly for OS X
2015-12-05 14:21:41 +00:00
Ted John ebcde1b231 Merge pull request #2418 from janisozaur/fixes
fix remaining suspicious left shifts
2015-12-05 14:20:29 +00:00
Ted John 4ed7a3496e Merge pull request #2347 from Gymnasiast/default-measurement-system
Change fallback measurement system to metric.
2015-12-05 13:32:07 +00:00
Ted John 8e3bfb7a58 Merge pull request #2409 from Gymnasiast/track-designs-manager-close
Add close button to track designs manager, closes #1807
2015-12-05 13:31:31 +00:00
duncanspumpkin a059f87805 Implement more of cableLift update 2015-12-05 12:05:15 +00:00
duncanspumpkin 2cbbf52a1b Implemented start of cableLift update 2015-12-05 10:49:23 +00:00
duncanspumpkin 2d2c419d60 Implemented cable lift move to end of station 2015-12-05 10:49:22 +00:00
duncanspumpkin 9561f87903 Implement cable lift waiting to depart 2015-12-05 10:49:22 +00:00
duncanspumpkin 5a69dd50ef Implemented some of the cable lift code 2015-12-05 10:49:21 +00:00
duncanspumpkin 9e182df025 Labeled lost_time_out 2015-12-05 10:49:21 +00:00
duncanspumpkin 95ac8d67ee Implement vehicle missing. Fixed bugs with reverese incline 2015-12-05 10:49:20 +00:00
duncanspumpkin 6e675b08c3 Implement vehicle_update_traveling 2015-12-05 10:49:20 +00:00
duncanspumpkin 3204b52d1e Implemented vehicle_update_test_finish and vehicle_test_reset 2015-12-05 10:49:19 +00:00
duncanspumpkin a0e1c16f48 Minor refactor 2015-12-05 10:49:18 +00:00
duncanspumpkin 371dec1c17 Fix bugs and finish departing station implementation 2015-12-05 10:49:18 +00:00
duncanspumpkin eb1e97d73c Implemented more. Fixed mistake with edx 2015-12-05 10:49:17 +00:00
duncanspumpkin d42a784d6b Started vehicle_update_departing 2015-12-05 10:49:17 +00:00
duncanspumpkin 3dd5847fca Fix small audio crash 2015-12-05 10:49:16 +00:00
duncanspumpkin 713b63d9f5 Implement vehicle update rotation 2015-12-05 10:49:15 +00:00
duncanspumpkin 688bd521b9 Implement vehicle update crooked house 2015-12-05 10:49:15 +00:00
duncanspumpkin 093d49253f Implemented vehicle update space rings and haunted house 2015-12-05 10:49:14 +00:00
duncanspumpkin e06ad99a93 Implement vehicle ferris wheel rotating update 2015-12-05 10:49:14 +00:00
duncanspumpkin ae50ce54c6 Implement vehicle update top spin 2015-12-05 10:49:13 +00:00
duncanspumpkin 53fa41f2b1 Implement ride lift data 2015-12-05 10:49:12 +00:00
duncanspumpkin 2661622dce Fix some of the sound bugs. Note this has diverged needs attention 2015-12-05 10:49:12 +00:00
duncanspumpkin d4827d389f Implemented update simulator operating 2015-12-05 10:49:11 +00:00
duncanspumpkin 70ef91c61e Implement vehicle_update_swinging. 2015-12-05 10:49:11 +00:00
duncanspumpkin e254d9f14a Implement bumpercars update. Named known vehicle states 2015-12-05 10:49:10 +00:00
duncanspumpkin e59305d1d1 Implement waiting to depart.
Not finished will not work at present
2015-12-05 10:49:09 +00:00
duncanspumpkin ec5121b3f6 Implement vehicle crash on water. Fix small particle issues
Requires a change in rand() implementation.
2015-12-05 10:49:09 +00:00
duncanspumpkin 1df0359859 Implement vehicle_kill_all_passengers. Fix some small bugs in the crash code 2015-12-05 10:49:08 +00:00
duncanspumpkin 98ef642463 Implemented vehicle_update_crash.
Note crash on water not implemented yet
2015-12-05 10:49:08 +00:00
duncanspumpkin 2dcc4748ac Implemented update_waiting_for_cable_lift 2015-12-05 10:49:07 +00:00
duncanspumpkin a2312616ab Added update showing film 2015-12-05 10:49:06 +00:00
duncanspumpkin b749106177 Fix restraint issue. 2015-12-05 10:49:06 +00:00
duncanspumpkin a71316c7a3 Small fix. 2015-12-05 10:49:05 +00:00
duncanspumpkin 24efa0f1fd Fix small bug in cover code 2015-12-05 10:49:05 +00:00
duncanspumpkin 4541e43cf0 Marginal improvements in accuracy by using right shifts and one logic mistake 2015-12-05 10:49:04 +00:00
duncanspumpkin 31e351b13f Revert name change of additional max height 2015-12-05 10:49:03 +00:00
IntelOrca a66966a4d9 fix rating bugs and merge mistakes 2015-12-05 10:49:03 +00:00
Duncan Frost 2bd851e26a Fix small flag mistake 2015-12-05 10:49:02 +00:00
Duncan Frost 50dbff6dd5 Added vehicle_close_restraints 2015-12-05 10:49:02 +00:00
Duncan Frost 8ac940de47 Refactor 2015-12-05 10:49:01 +00:00
Duncan Frost 7afc7453fd Fix loading bugs 2015-12-05 10:49:00 +00:00
Duncan Frost b60ca54e47 Fix some of the vehicle bugs 2015-12-05 10:49:00 +00:00
Duncan Frost fe6e0a11fa Finished waiting for passengers. Bugs encountered 2015-12-05 10:48:59 +00:00
Duncan Frost 392815cd0c Added more of waiting_for_passengers 2015-12-05 10:48:59 +00:00
Duncan Frost 339f872bec Added sub_6d6a2c 2015-12-05 10:48:58 +00:00
Duncan Frost d52a5a1850 Added vehicle update move to end of station 2015-12-05 10:48:57 +00:00
Duncan Frost 691914e4e4 Small rename 2015-12-05 10:48:57 +00:00
Duncan Frost c8c55002c8 Refactor with sheltered knowledge 2015-12-05 10:48:56 +00:00
Duncan Frost d602fc75be Fix bugs. 2015-12-05 10:48:56 +00:00
Duncan Frost 2b7f7c9232 Refactor turn count variables 2015-12-05 10:48:55 +00:00
Duncan Frost 59736c7b4a Refactor and name flags 2015-12-05 10:48:54 +00:00
Duncan Frost d9511910de Finish vehicle_update_measurements 2015-12-05 10:48:54 +00:00
Duncan Frost 79fb099c21 Added more of update measurements 2015-12-05 10:48:53 +00:00
Duncan Frost 2ab0c7684b Started work on 6d6d1f 2015-12-05 10:48:53 +00:00
Duncan Frost 5e198dfa1f Add known ride offsets 2015-12-05 10:48:52 +00:00
IntelOrca 3f5bd26913 implement vehicle_update_doing_circus_show 2015-12-05 10:48:51 +00:00
IntelOrca 6f5a54e536 try to make sense of vehicle_update_sound 2015-12-05 10:48:51 +00:00
IntelOrca eec2edad21 start implementing vehicle update 2015-12-05 10:48:50 +00:00
IntelOrca b1bb72c833 Merge branch 'master' into develop
Conflicts:
	src/rct2.h
2015-12-04 21:16:43 +00:00
IntelOrca 673796eb6c Merge branch 'pre-release-0.0.3.1' 2015-12-04 21:09:43 +00:00
Sam Parkinson b9ba20a399 Implement CTRL-Backspace shortcut for clearing inputs, fixes #2355 2015-12-05 06:56:39 +11:00
IntelOrca 9c19d689c2 fix #2434: Dropdown menus linger when toolbars are toggled 2015-12-04 19:02:24 +00:00
IntelOrca 737baf8b78 fix #2158: Video Freeze when window is maximised, minimised and then restored 2015-12-04 18:59:59 +00:00
duncanspumpkin 11398cf60f Fix warning. 2015-12-04 16:57:43 +00:00
xperia64 562d7fdb61 Add symbolic link support 2015-12-03 00:20:04 +00:00
duncanspumpkin 8eb313f852 Fix #2417 also fixed some surface pathfinding bugs.
Guests were ignoring fences when surface pathfinding even when there was an available exit. Missing &= 3 was causing the assert to trigger.
2015-12-02 18:59:00 +00:00
IntelOrca 9426170918 fix #2425: ride campaign list corrupted if over 40 rides 2015-12-02 17:50:32 +00:00
Michał Janiszewski 796021cfdc fix suspicious left shifts
See b5b1957f5
2015-12-02 08:32:15 +01:00
Michał Janiszewski d1b6d175c7 Make each platform set its own exe path 2015-12-01 21:38:35 +01:00
IntelOrca 60300dcece update version and branch 2015-12-01 18:30:04 +00:00
IntelOrca 8de299cc06 fix #2415: day / night cycle not working 2015-12-01 18:26:02 +00:00
Hielke Morsink 65a0dcbc8a Fixed #2407 - Prevent prompt from showing shortly after loading a second park. 2015-12-01 18:21:47 +00:00
Hielke Morsink 90e67772e0 Resolved warnings, and removed duplicated function. 2015-12-01 12:03:34 +01:00
Gymnasiast 3f6990dac9 Add close button to track designs manager, closes #1807 2015-11-30 22:53:28 +01:00
Duncan 396e6f8fee Merge pull request #2297 from osconnoisseur/decompile-map_set_land_height
Decompilation of map_set_land_height
2015-11-30 20:35:50 +00:00
duncanspumpkin 1a9b96340c Merge OpenRCT2/master into OpenRCT2/develop 2015-11-30 18:55:32 +00:00
duncanspumpkin 93e0bc5a24 Merge OpenRCT2/pre-release-0.0.3 into OpenRCT2/master 2015-11-30 18:53:57 +00:00
duncanspumpkin d91a9c965c Fix #2405. Foundations under shops now correctly drawn.
Issue was caused by a mistake in implementation
2015-11-30 18:00:33 +00:00
Kevin c0f7b0b1f3 [Linux] Fix platform_get_locale_currency with new ascii fallback 2015-11-30 13:33:50 +01:00
Kevin b4907ba70c [Linux] Implement platform_get_locale_currency.
Fix Chinese language codes.
2015-11-30 13:33:50 +01:00
Kevin 3ece04dc8d [Linux] Implement platform_get_locale_measurement_format and platform_get_locale_temperature_format 2015-11-30 13:33:50 +01:00
Kevin d43bc73e76 [Linux] Implement platform_get_locale_language. 2015-11-30 13:33:50 +01:00
Hielke Morsink 666da74beb Changed missleading variable name from 'filename' to 'path'. 2015-11-29 19:59:15 +01:00
Hielke Morsink 5b1d93805d More consistent use between name and paths. Improved path_get_* functions. 2015-11-29 19:41:06 +01:00
IntelOrca df1f5bad00 fix #604: mute toilet flush sfx on title screen 2015-11-29 17:19:16 +00:00
duncanspumpkin b9f7f6f4a2 Fix #2395. Fix pressing construct twice 2015-11-29 17:18:42 +00:00
Hielke Morsink 0909ba8ab4 fixed #2226: resetting screen age when quick saving 2015-11-29 17:18:41 +00:00
duncanspumpkin 4527aa263e Added check to match mechanic fix 2015-11-29 17:18:41 +00:00
duncanspumpkin cae7b03bdf Fix #1717. Fixes fix ride from failing to fix safety cut out.
As the code to fix rides has not been completed yet it was unknown that safety cutout had so many flags requiring reseting
2015-11-29 17:18:40 +00:00
duncanspumpkin b1c8275ec0 Disable tracks for networked games until fixed 2015-11-29 17:18:40 +00:00
duncanspumpkin 518b19156a Fix vehicle colours using scenario rand 2015-11-29 17:18:39 +00:00
duncanspumpkin a4cb2c55d1 Fix ride create on multiplayer using scenario_rand for colour causing desync 2015-11-29 17:18:39 +00:00
Hielke Morsink 02349d2463 Using platform_get_path_separator for getting the filename now 2015-11-29 17:01:41 +01:00
Hielke Morsink 415f55d38d Removed '.TD6' part from being added automatically when saving a new track 2015-11-29 16:45:02 +01:00
Hielke Morsink 5ca371c5c5 Displaying full track filename excluding the real extension 2015-11-29 16:36:46 +01:00
Hielke Morsink 63184052be minor optimizations and added comments to some util functions 2015-11-29 16:00:15 +01:00
Duncan 8274ea1842 Merge pull request #2389 from samdroid-apps/curl-system-certs
[Linux] Use system ca certs bundle
2015-11-29 14:42:50 +00:00
Michał Janiszewski b4b1624e08 Set path properly for OS X 2015-11-29 15:29:35 +01:00
Michał Janiszewski ed21aeb3fc Take care of strings in POSIX platform file 2015-11-29 12:19:13 +01:00
Michał Janiszewski 39cc16d137 Plug memory leaks, check memory accesses 2015-11-29 12:15:47 +01:00
Duncan ada46ccc80 Merge pull request #2386 from LinusU/osx-platform
OS X platform
2015-11-29 11:10:35 +00:00
IntelOrca cf1961b725 fix #2385: Parks created with scenario editor do not have correct initial temperature 2015-11-28 12:24:19 +00:00
IntelOrca 7909ba1f3b fix #2390: Not fully implemented UTF-8 currencies in building/landscaping/etc. 2015-11-28 12:10:17 +00:00
Linus Unnebäck 859684142a OS X platform implementation 2015-11-28 10:40:58 +01:00
Sam Parkinson 4eb55ac156 [Linux] Use system ca certs bundle
Curl automatically has a certs bundle on GNU/Linux, so providing
our own is not needed.
2015-11-28 10:56:23 +11:00
IntelOrca c6056cbb6c Merge branch 'pre-release-0.0.3' into develop
Conflicts:
	src/audio/audio.c
2015-11-27 22:05:40 +00:00
duncanspumpkin 843999997b Fix #2375. Issue caused by invalid z coordinate for invalidate.
Also fixed a couple other functions which were calling with the incorrect z value
2015-11-27 19:17:35 +00:00
IntelOrca 674ff839bb add icons to server list for password and version 2015-11-27 18:54:59 +00:00
duncanspumpkin 691aec5035 Fix #2381. Map animation invalidate now called during pause mode
This was causing the number of map animations to skyrocket as there was no way to remove animations caused by ghosts. This shouldn't progress the animation only remove invalid animations.
2015-11-27 18:40:37 +00:00
duncanspumpkin 119ca58cc7 Add check to prevent exceeding the maximum number of animations. Probable cause of #2381 2015-11-27 18:01:45 +00:00
Ted John c63eef9a21 Merge pull request #2378 from IntelOrca/support-unicode-currencies
support unicode currencies with ascii fallback
2015-11-27 17:56:44 +00:00
Linus Unnebäck 30b6718532 start of OS X support 2015-11-27 17:43:12 +01:00
IntelOrca 7ea0e2d6a3 improve language load fail behaviour
improve currencies
fix bug in supported glyph check
2015-11-26 18:28:52 +00:00
IntelOrca 46924bc9eb support unicode currencies with ascii fallback 2015-11-25 22:31:00 +00:00
duncanspumpkin 83d183954a Fix #2337. Fixed footpath placements with walls. 2015-11-24 20:10:03 +00:00
zsilencer 0c3c9d5400 Fix #2352. Do not open disconnected status window when password input canceled. 2015-11-23 13:07:18 -07:00
duncanspumpkin cba189c2de Fix #2326. Fixed research bugging out when going back to object selection 2015-11-23 18:25:43 +00:00
Harry Lam e528e32ec0 Revert "Update language.cpp (CHT font)" 2015-11-23 16:26:18 +08:00
e-foley b147fd3a90 make speed affect upward launch ratings only 2015-11-21 18:17:26 -08:00
IntelOrca c6308dcb41 stop ride window from opening when there is a vehicle crash on the title screen 2015-11-21 13:40:00 +00:00
IntelOrca 1ff2d68061 implement track paint shop
implement track paint shop, part 2

implement track paint shop, part 3

implement track paint shop, part 4
2015-11-20 22:53:53 +00:00
IntelOrca 5a9a372100 change branch name - this should have been done when branch was created :/ 2015-11-20 21:40:37 +00:00
duncanspumpkin 5bd3b8d6af Implement util_rand due to rand having a poor range on some platforms 2015-11-20 21:40:36 +00:00
IntelOrca 5ef10f5050 fix memory leaks in JSON object creation for multiplayer 2015-11-20 18:48:40 +00:00
duncanspumpkin bd262d9c59 Fix #2308. ShopItem was accidentally passed into new_thought instead of thought_type 2015-11-20 17:12:26 +00:00
Gymnasiast d9fae6735b Change fallback measurement system to metric. 2015-11-19 19:53:20 +01:00
IntelOrca 67b6aa7513 fix #2330: Clear button in Object Selector doesn't refresh item list 2015-11-18 23:19:25 +00:00
duncanspumpkin e05475cb38 Fix #2342. Accidentally disabled pause mode building for large scenery 2015-11-18 22:32:23 +00:00
Michał Janiszewski c4ad2346e3 Fixes for building optimized binary on Linux
Use `-DCMAKE_BUILD_TYPE=X`, where X:
- `RELEASE`
- `RELWITHDEBINFO`
- `MINSIZEREL`

Only works for GCC, clang binaries crash for now.
2015-11-18 21:29:08 +01:00
duncanspumpkin 6c8c5a157f Fix #2335. Increase land window size to show price correctly. 2015-11-18 17:48:14 +00:00
Duncan e36ed5e732 Merge pull request #2325 from BodrickLight/refactor
Refactor audio.c and audio.h
2015-11-18 17:33:21 +00:00
Dom Light 55fb03fa75 Replace a call to audio_play_sound_panned 2015-11-18 14:01:29 +00:00
Harry Lam 0081fb8435 Update language.cpp (CHT font)
Microsoft removed "MingLiu.ttc" in Windows 10 1511 for no reason. The alternative, "MingLiub.ttc" (which support more characters and existed since Vista (https://www.microsoft.com/typography/fonts/font.aspx?FMID=1772)) is kept instead.
2015-11-18 13:54:22 +08:00
Dom Light 92a30e0a32 Add missing return documentation
[skip ci]
2015-11-18 00:20:22 +00:00
Dom Light a07333aeaf Move memory address documentation to header file 2015-11-18 00:11:31 +00:00
Dom Light bb62b7561a Replace some uses of play_sound_panned with play_sound_at_location 2015-11-18 00:03:15 +00:00
Dom Light e9b7e41635 Refactor audio_sound_play_planned 2015-11-17 23:05:24 +00:00
duncanspumpkin f1ffba8f21 Merge branch 'pre-release-0.0.3' into develop 2015-11-17 22:39:31 +00:00
Dom Light bbc58830f3 Allow lines to be 128 characters 2015-11-17 20:07:39 +00:00
Ted John aade14ba03 Merge pull request #2322 from Broxzier/search_types
Searching through rides now also checks their type.
2015-11-17 20:01:38 +00:00
Dom Light 72b6a1e74b Add parens and use coordinate_3d_to_2d in audio.c 2015-11-17 20:01:30 +00:00
Duncan cdb9ccc558 Merge pull request #2323 from Smeat/file_pattern
Use fnmatch to match file patterns.
2015-11-17 19:07:36 +00:00
duncanspumpkin 6d3eaafe2f Fix #2327. Fix no entry signs.
Issue was caused by mistakenly not stopping searching for tiles after finding the correct one. Mistake made during refactoring
2015-11-17 19:04:43 +00:00
Hielke Morsink 68b0068a22 Resolved warnings 2015-11-17 19:40:48 +01:00
Hielke Morsink 504f551eec Avoiding the use of strlen 2015-11-17 19:40:47 +01:00
Hielke Morsink 063a568a72 Searching through rides now also checks their type. 2015-11-17 19:40:44 +01:00
Ted John 50edff6158 Merge pull request #2314 from Gymnasiast/obsolete-tooltip
Remote obsolete date tooltip
2015-11-17 18:21:29 +00:00
Kevin c1fe547901 Add FNM_PATHNAME flag for fnmatch 2015-11-17 12:25:45 +01:00
Dom Light b9d48d2f9b Document audio.h 2015-11-17 01:05:22 +00:00
Dom Light b736de003e Sanitize audio.c 2015-11-17 01:05:21 +00:00
Dom Light 3a8b25a0ee Sanitize audio.h 2015-11-17 01:05:14 +00:00
Kevin 5cd0ab7fad Use fnmatch to match file patterns.
strstr doesn't support wildcards, so patterns like '*.TD?' will fail.
This adds the possibility for more complex patterns.
2015-11-17 00:27:29 +01:00
Alexander Overvoorde 0f065cf4a9 Add string ids for scenario name window 2015-11-16 20:30:38 +00:00
Alexander Overvoorde b83e570230 Fix length of max scenario name in scenario editor 2015-11-16 20:30:26 +00:00
duncanspumpkin c1ed727067 Fix #2305. Fences now build correctly with shift.
Issue was caused by failing to reinitialise a variable and reusing a variable name for two different purposes. It has been fixed by nameing the variable and also initialising it.
2015-11-16 20:19:58 +00:00
Duncan 62863db42a Merge pull request #2318 from Overv/fix_2316
Fix length of max scenario name in scenario editor (fixes #2316)
2015-11-16 19:07:23 +00:00
U-ASUS-EEEPC\Cameron Hall da79f706f3 Hoist gCheatsDisableSupportLimits check outside of loop 2015-11-16 12:09:11 -06:00
zsilencer 292b67874f Fix #2311. Water no longer is able to be raised above existing map elements. 2015-11-16 10:38:20 -07:00
Alexander Overvoorde 994dd1f945 Add string ids for scenario name window 2015-11-16 17:56:51 +01:00
Alexander Overvoorde 3ba35745c8 Fix length of max scenario name in scenario editor 2015-11-16 17:50:52 +01:00
Ted John b31e2d02bc Merge pull request #2317 from telk5093/patch-3
Korean font change
2015-11-16 16:33:48 +00:00
TELK 5d1c1b4445 Update language.cpp 2015-11-17 01:21:41 +09:00
Duncan 637e454fef Merge pull request #2290 from janisozaur/network-clean-close
Skip closing network if already closed
2015-11-16 15:58:00 +00:00
TELK 3889f5daad Korean font change
change korean font from malgun to gulim.
I tested it is displayed correctly in korean os. See http://file.telk.kr/rct/img/gulim.png
2015-11-17 00:56:22 +09:00
janisozaur d3329b74a5 Comment expected cmdline_call_action results 2015-11-16 13:59:01 +01:00
Gymnasiast 2afed6a4de Remote obsolete date tooltip 2015-11-16 11:04:00 +01:00
Cameron 9f255e5045 Use fcntl.h instead of sys/fcntl.h 2015-11-15 15:58:22 -06:00
Cameron 763a5f2938 Restore newline at end of file 2015-11-15 15:50:36 -06:00