1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00
Commit Graph

908 Commits

Author SHA1 Message Date
Michael Steenbeek
f431d0cbd9 Fix some cases of viewport clipping out of map bounds 2016-12-28 22:30:41 +01:00
Michał Janiszewski
d645e53428 Allow arbitrary entertainers' costume changes via console
This was discussed at
http://www.nedesigns.com/topic/32012/openrct-advantages-and-disadvantages/?p=712114
2016-12-28 13:06:24 +00:00
Ted John
31d4f79dc5 Merge pull request #4878 from Broxzier/cpp_fixes
CppCheck fixes
2016-12-28 12:57:34 +00:00
Ted John
a7b60c2419 Fix #4929: Changing TTF language crashes game 2016-12-27 23:27:49 +00:00
Broxzier
6c29bdbf21 CppCheck fixes 2016-12-24 13:10:03 +01:00
Ted John
c5899139d7 Move scenario sources to sub directory 2016-12-16 01:25:05 +00:00
LRFLEW
7a93c1f001 Fix Compilation Issues 2016-12-16 01:25:04 +00:00
Ted John
c872053fdd Forward declare TitleSequence in window.h 2016-12-16 01:25:04 +00:00
Ted John
7ddc7a6664 Remove old title sequence code 2016-12-16 01:25:04 +00:00
Ted John
9ce926db92 Fix sequence command editor window 2016-12-16 01:25:04 +00:00
Ted John
20ea3edef2 Fix rebase errors 2016-12-16 01:25:03 +00:00
Ted John
11a2b98e58 Remove title editor specific code from loadsave window
This involved removing any logic performed in loadsave for loading saved games and moving them to callback routines for all uses.
2016-12-16 01:25:03 +00:00
Ted John
2810d09dc6 Fix loading of saved games from title editor 2016-12-16 01:25:03 +00:00
Ted John
3ea81e3b8b Get rename and delete working 2016-12-16 01:25:03 +00:00
Ted John
afdd45f3cc Refactor title sequence player to new class 2016-12-16 01:25:02 +00:00
Ted John
0c51dee94d Refactor a large amount of title sequence loading
Still not yet able to load parks from zip.
2016-12-16 01:25:01 +00:00
Ted John
e6377b40ef Write new code for loading title sequence ZIPs 2016-12-16 01:25:01 +00:00
Ted John
abc3835d7b Rename openrct2.c h to OpenRCT2.c h 2016-12-14 00:32:06 +00:00
Michał Janiszewski
1ae2ca54f7 Sort includes 2016-12-01 16:03:16 +01:00
Michał Janiszewski
afdc1457d5 Move font-related code out from language.cpp 2016-12-01 16:03:16 +01:00
Michał Janiszewski
54e622659d Extract common parts from rct2.h to common.h 2016-12-01 16:03:16 +01:00
Michał Janiszewski
7eb008b546 Ensure includes are used when needed 2016-12-01 09:09:15 +01:00
Marijn van der Werf
ec6724b4d4 Name font flags 2016-11-16 13:24:39 +00:00
Ted John
4d7f52960d Merge pull request #4737 from Broxzier/copy_element
Copy/paste single elements
2016-11-14 21:24:40 +00:00
Michael Steenbeek
ba1225cf6e Merge cheats in console, pathfinding improvements 2016-11-14 08:54:51 +01:00
Marijn van der Werf
4039172fb7 Use more constants for drawing arguments 2016-11-13 22:29:03 +00:00
Michał Janiszewski
3f7fd56328 Remove trailing whitespace in sources 2016-11-13 20:32:55 +01:00
Marijn van der Werf
1a8cb9fc57 Use more constants for text colours 2016-11-13 17:44:34 +00:00
Marijn van der Werf
022b481d66 Use constant for black strings 2016-11-13 17:20:30 +00:00
Marijn van der Werf
bb615c60ee Clean up translucent palettes 2016-11-13 01:51:28 +01:00
Marijn van der Werf
06b128bac7 Name more palettes 2016-11-13 01:51:27 +01:00
Marijn van der Werf
4f47808201 Name glass palettes 2016-11-13 01:51:26 +01:00
Marijn van der Werf
2109763267 Rename translucent palettes 2016-11-13 01:45:43 +01:00
Marijn van der Werf
1ce2242bb3 Start cleaning up filters 2016-11-13 01:45:43 +01:00
Marijn van der Werf
0496cf6bd8 Merge colour maps 2016-11-11 08:46:14 +00:00
Marijn van der Werf
80ea7f7de5 Name gfx_fill_rect_inset flags 2016-11-10 17:54:33 +00:00
Broxzier
ecc9637bbd Clearing tile inspector clipboard when loading a park 2016-11-09 20:03:19 +01:00
Michał Janiszewski
9c818ea2dc Reorder fields to reduce padding (#4758)
Reduces padding:
* In `rct_viewport` from 5 to 1
* In `rct_ride_entrance_definition` from 4 to 0
2016-11-06 21:06:02 +01:00
Michał Janiszewski
06b659db40 Replace malloc(0) with explicit NULL
From documentation on `void* malloc( size_t size );`:
> If size is zero, the behavior is implementation defined (null pointer
may be returned, or some non-null pointer may be returned that may not
be used to access storage).

Both `free()` and `realloc()` understand `NULL`, so use that to avoid
implementation-defined behaviour
2016-11-06 21:00:47 +01:00
wolfreak99
410ce9fd66 prefix console commands with "cheat_" 2016-11-05 05:14:17 -04:00
wolfreak99
28773b4c40 Change sandbox mode, clearance check, and support limit cheats to take parameter as value 2016-11-05 05:14:12 -04:00
wolfreak99
102af2f8ca rewrite to use value returned from game_do_command 2016-11-05 04:34:19 -04:00
wolfreak99
369b85fc51 Sync cheats in console across multiplayer, add "sandbox_mode" 2016-11-04 13:58:47 -04:00
wolfreak99
4368d67f6e disable_clearance_checks and disable_support_limits in console 2016-11-04 13:58:44 -04:00
Michał Janiszewski
1f0adb95da Check value of DEBUG_LEVEL_X macro, not just definition
DEBUG_LEVEL_X macros are always defined to 0 or 1, this could prevent
some optimisations from compilers, especially inlining
`get_current_rotation()`.
2016-11-02 08:19:25 +00:00
Ted John
a9a1f54f8a Fix centreing of title menu buttons 2016-10-31 22:24:02 +00:00
Michał Janiszewski
5585a3e67d Fix #4722: warnings with clang 3.9 2016-10-30 21:57:14 +01:00
Ted John
e666028e02 Convert track repository to C++ 2016-10-22 22:36:45 +01:00
Ted John
60df18ee0f Refactor paint_arrange_structs 2016-10-22 13:35:21 +01:00
Ted John
86dd18a65d Rename paint functions 2016-10-22 13:35:21 +01:00