1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00
Commit Graph

1619 Commits

Author SHA1 Message Date
Ted John
487fcc3c5b Fix #4134: Can't enable park-wide photo price for log flume and river ra
Caused by not shifting the shop item flags (those above 32) to the correct mask bit.
2016-07-19 18:35:44 +01:00
Matte A
f6c8993da6 Fix #4080: Track list doesn't update when a track design gets deleted
Show an error if it can't select a track design rather than silently failing. Updating the list would require a file watcher on the tracks directory, and this edge case isn't particularly important at the moment.
2016-07-18 18:10:16 +01:00
Michał Janiszewski
9f57c82653 Refactor access to g_sprite_list
Hide g_sprite_list behind accessor function with a check. `assert` is
temporarily disabled, as it breaks nearly every park.
2016-07-17 22:19:34 +02:00
Ted John
e9df7310db Add missing object type check for scenery ORIs 2016-07-16 17:57:58 +01:00
Ted John
304d6d9304 Fix #4110: guests still get charged for rides 2016-07-16 16:27:49 +01:00
Ted John
fbcaf735b9 Merge pull request #3805 from wolfreak99/window_limit
Add option to set window limit.
2016-07-15 20:54:50 +01:00
Michał Janiszewski
1742ce71ed Fix handling of signed types 2016-07-15 18:48:22 +01:00
wolfreak99
3b8bd8ce93 rename max_window_count to window_limit_max 2016-07-15 10:25:59 -04:00
wolfreak99
44202d0bd1 Allow setting limit on maximum windows allowed
This provides an option to set a limit on the number of windows that can
be open. Originally, the game had somewhere around 12, but was bumped up
to 64 for OpenRCT2. While this provides some value, this is for people who
prefer less windows at a time, and also for people with older computers.
The limit can be set anywhere between 8 and 64, (8 being chosen to still
preserve in-game toolbars that are counted as windows, and 64 to not
overshoot the maximum hard-coded value). This can be set in both options
and the in-game-console.
2016-07-15 07:07:34 -04:00
Sijmen Schoon
6e765d2917 Remove trailing whitespace 2016-07-14 22:50:52 +02:00
Sijmen Schoon
1b5d6aba79 Change .image to .text 2016-07-14 20:45:34 +02:00
Sijmen Schoon
bae92997c3 Sort includes 2016-07-14 20:45:34 +02:00
Sijmen Schoon
70b2779654 Add a failsave to the parent directory code 2016-07-14 20:45:34 +02:00
Sijmen Schoon
95a081bf38 Fix drive listing on Windows 2016-07-14 20:45:34 +02:00
Sijmen Schoon
53e469834b Clean up window_loadsave_populate_list 2016-07-14 20:45:34 +02:00
Sijmen Schoon
bf51ae7e26 Refactor rest of window_loadsave_mouseup 2016-07-14 20:45:34 +02:00
Sijmen Schoon
58964cb301 Refactor WIDX_UP and WIDX_NEW 2016-07-14 20:45:34 +02:00
Sijmen Schoon
446db73dc2 Fix refactoring oversight in window_loadsave_open 2016-07-14 20:45:34 +02:00
Sijmen Schoon
a26ad34ecd Remove unused function has_extension 2016-07-14 20:45:34 +02:00
Sijmen Schoon
0100ae7cd3 Refactor window_loadsave_open 2016-07-14 20:45:34 +02:00
Michał Janiszewski
a6d0e6916e Fix function definitions to match their declarations
This makes sure every function is properly declared, which includes
proper `extern` wrappers.
2016-07-14 14:11:49 +02:00
Marijn van der Werf
5204fb0ce9 Clean up string and sprite ID's (#3977) 2016-07-14 14:07:49 +02:00
Sijmen Schoon
fb456a86ea Fix #4061: Wrong error message when opening all rides with unfinished rides
Show the proper error when opening all rides goes wrong.
2016-07-14 11:26:12 +01:00
Ted John
04340021f6 Fix #4071: Guests paid when free entry park flag
Make most usages of park entrance fee use a common function which does the necessary checks.
2016-07-13 19:48:42 +01:00
Ted John
dca816cfd3 Merge pull request #4024 from IntelOrca/refactor/object-list
Refactor and improve the object system:
- Objects are now exported to user directory under 'object'.
- Object directories are scanned recursively.
- Improves reliability of object loading and handling of bad objects.
- Improve performance of object scanning.
- Only load new objects when loading a new game.
- Improve changing language experience.
2016-07-11 23:45:45 +01:00
Ted John
edb4a4a822 fix get capacity string for vehicles 2016-07-11 22:50:55 +01:00
Ted John
4bf9748143 fix drawing of object preview
We can't use dpi->width and dpi->height as they only define the clip region, not the viewport
2016-07-11 22:09:15 +01:00
Sijmen Schoon
38f402f156 Remove variable that became unused because of 06de7b 2016-07-11 19:26:25 +02:00
Sijmen Schoon
06de7bc1e1 Set default track folder to user track directory
Fixes #4019
2016-07-11 19:13:30 +02:00
Sijmen Schoon
773c7e04ef Remove stray space 2016-07-11 19:13:30 +02:00
Sijmen Schoon
d8bc890d0a Exit scenery selection mode when done saving 2016-07-11 19:13:30 +02:00
Sijmen Schoon
79a85cd659 Save track designs as td6 file 2016-07-11 19:13:30 +02:00
Sijmen Schoon
9d1ae9b576 Fix track save system dialog crash 2016-07-11 19:13:30 +02:00
Sijmen Schoon
a194c91997 Use OpenRCT2 dialog for saving tracks 2016-07-11 19:13:30 +02:00
Ted John
f5391a366f Merge pull request #4048 from Goddesen/fix_4037_utf8_cursor
Use UTF-8 to measure cursor size in text input.
2016-07-11 18:00:17 +01:00
Ted John
7ae7c4f498 Merge pull request #4020 from duncanspumpkin/rate_input
Allow rate input by text box
2016-07-11 17:58:38 +01:00
Josue Acevedo
cc2d91a642 Fix #4042: Park name isn't shown in objective selection 2016-07-11 09:54:37 +01:00
Josue Acevedo
c17a89707c Fix #4031: Costs of land rights not displayed when hovering a tile 2016-07-11 09:31:42 +01:00
Goddesen
555eb227a8 Remove uint32 cast - size_t can be safely compared to size_t. 2016-07-11 02:15:15 +02:00
Goddesen
23e4fe63d0 Use utf8 to measure cursor size in text input. 2016-07-11 02:15:15 +02:00
duncanspumpkin
50c2e52b57 Use better text descriptions. Holding down rate buttons now increase/decrease 2016-07-10 09:26:23 +01:00
Ted John
3d824142ee clean up init_scenery a bit 2016-07-09 21:06:54 +01:00
duncanspumpkin
1d4fb5cb6f Allow rate input by text box 2016-07-09 08:39:45 +01:00
Ted John
5785020b07 fix clip size of preview 2016-07-09 01:28:57 +01:00
Ted John
78c6b6a251 remove all unnecessary object resets 2016-07-08 22:58:38 +01:00
Ted John
60098aeef0 remove last use of object_load_chunk 2016-07-08 22:58:38 +01:00
Ted John
9801e92d79 fix track manager object filtering 2016-07-08 22:58:38 +01:00
Ted John
d7e1933f12 fix track manager preview 2016-07-08 22:58:38 +01:00
Ted John
f59d6b7a00 implement unloading arbitrary objects 2016-07-08 22:58:38 +01:00
Ted John
488da7942c use object_manager_get_loaded_object instead 2016-07-08 22:58:38 +01:00