Commit Graph

254 Commits

Author SHA1 Message Date
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
Duncan 9edd48c4b8 Merge pull request #3231 from marijnvdwerf/use-structs
Clean up data use
2016-04-13 12:38:58 +01:00
duncanspumpkin be8c84f1c1 Fix grass growth mistake
Nibbles are only 4 bits not 8
2016-04-11 20:04:03 +01:00
IntelOrca 37d759ffb7 fix #3268: water tool sound even when no change 2016-04-10 13:05:16 +01:00
duncanspumpkin f251ddd5a9 Fix grass growing underneath objects. 2016-04-10 10:14:06 +01:00
Marijn van der Werf 0fd42f408a Extract new struct 2016-04-03 14:53:17 +02:00
IntelOrca 6f2d91cc7e land and water now obey disable clearance, closes #3196 2016-03-31 21:57:22 +01:00
IntelOrca a2fda29d92 validate park entrances and land ownership tools 2016-03-22 22:55:13 +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
Gymnasiast ddf3d7a03d Consistently use 'colour' rather than 'color' 2016-02-28 20:32:02 +01:00
Michał Janiszewski aa8437cb9d Minor fixes 2016-02-26 20:49:01 +01:00
Michał Janiszewski 6b514d1e3a Fix possible issues highlighted at higher warn levels
Mostly possibly uninitialized values and signedness
2016-02-26 12:54:00 +01:00
Michał Janiszewski fc2bba3047 Fixes for upcoming GCC6 & Clang 3.8 2016-02-25 19:35:18 +01:00
Michał Janiszewski 14bff0c66f Rename rct_ride_type to rct_ride_entry 2016-02-25 13:33:19 +01:00
Michał Janiszewski eb645cd4f3 Rename ride_entry functions and provide better logging
For hacked rides, provide the name of offender in the log.
2016-02-24 22:23:33 +01:00
Michał Janiszewski d375015975 Mark map element getters const
While it doesn't change a lot in terms of performance, it helps out
compiler being a bit smarter about inlining and reordering things (as
evidenced by generated assembly).
2016-02-23 15:12:48 +01:00
IntelOrca 5cf0c4bd07 remove commented out callproc/funcs 2016-02-16 20:10:24 +00:00
IntelOrca 8268f607cd implement track_remove_station_element 2016-02-14 17:37:28 +00:00
Duncan 0e75efc1eb Merge pull request #2927 from OpenRCT2/clear_funcs
Implement Clear funcs
2016-02-14 07:19:33 +00:00
duncanspumpkin 53689349f9 Fix mistake added in refactor.
Also remove redundant global variable setting
2016-02-13 21:55:00 +00:00
duncanspumpkin 9c3055224d Refactor clear funcs 2016-02-13 21:01:36 +00:00
duncanspumpkin 305ae76346 Implement clear funcs for remaining functions 2016-02-13 20:26:22 +00:00
duncanspumpkin f6797181b5 Start implementing clear_funcs 2016-02-13 13:10:55 +00:00
Marijn van der Werf 7565a7ba69 Implement substate 9 2016-02-13 00:01:15 +01:00
Duncan b0c5b85765 Merge pull request #2784 from marijnvdwerf/decompile-attempt
[WIP] Attempt at decompiling `game_command_set_maze_track`
2016-02-01 16:01:45 +00:00
Marijn van der Werf a926783164 Decompile game_command_set_maze_track 2016-02-01 14:03:56 +01:00
duncanspumpkin b8c4c46f32 Minor refactor of map location compare flags.
Labelled ELEMENT_IS_UNDERGROUND.
2016-01-31 16:58:38 +00:00
Michał Janiszewski ec2387082c Remove cheats from config 2016-01-25 21:44:13 +01:00
zsilencer 32f1aa064d more accurate last player action location 2016-01-24 21:00:31 -07:00
Michał Janiszewski 95e3895b89 Game commands' argument validation 2016-01-24 19:31:40 +01:00
Ted John 6eaa93c9bc Merge pull request #2783 from zsilencer/multiplayer
MP groups and permissions
2016-01-24 12:29:27 +00:00
zsilencer 8c608b6f6c fix issues with a few game commands 2016-01-23 17:33:08 -07:00
zsilencer 5a72cb02f1 fix small issue caused by some RCT2_ADDRESS_COMMAND_MAP being used as 32 bit vars 2016-01-23 14:42:36 -07:00
IntelOrca 62eeaaf405 fix severe regression from #2787, use object entry array instead of ride entry array 2016-01-23 12:47:04 +00:00
Michał Janiszewski 6d6f9f3c23 Refactor rides to be only accessible with getters
This changes how rides are accessed from macros to getter functions.
2016-01-23 01:13:36 +01:00
IntelOrca 0584de1501 fix part of #2747: mistake in map coordinate clamping for set ownership 2016-01-17 12:44:16 +00:00
duncanspumpkin 0f6c8b8760 Refactor get small scenery to prevent repeats of #2735. 2016-01-16 11:04:06 +00:00
duncanspumpkin 3865bf9381 Fix #2735. 1/4 tile scenery can now correctly be recoloured.
Issue was caused by an assumption made during writing this function.
2016-01-16 10:55:36 +00:00
Ted John e69e384d43 Merge pull request #2692 from marijnvdwerf/use-named-addresses
Replace known addresses with constants, globals and wrapper functions
2016-01-15 22:59:13 +00:00
Michał Janiszewski 17fb150ec0 Limit arguments to map functions
While there is nothing wrong with the code as it is now, some
unexpected arguments can cause entering a loop which will flood the
log and possibly stall the game.
2016-01-15 23:29:51 +01:00
Marijn van der Werf 98b5ad1bf4 Replace known addresses with constants 2016-01-15 21:01:34 +01:00
IntelOrca 730463dbbb remove rct2_malloc, rct2_realloc and rct2_free 2016-01-14 20:18:55 +00:00
Marijn van der Werf ef9ac11e52 Remove direct usage of `RCT2_ADDRESS_LARGE_SCENERY_ENTRIES` 2016-01-11 21:00:22 +01:00
duncanspumpkin 2bd6dac20f Merge branch 'develop' into vehicle-update
Conflicts:
 openrct2.vcxproj
2016-01-10 08:57:41 +00:00
Gymnasiast 03c35ab0b6 Don't remove walls when raising/lowering land/water, fixes #2681 2016-01-09 23:46:08 +01:00
Michał Janiszewski 133096cd64 Merge branch 'develop' into vehicle-update 2016-01-05 09:59:53 +01:00
Michał Janiszewski 9c4cf14069 Game commands hardening 2016-01-04 22:03:28 +01:00
Michał Janiszewski 2b1b0f76f3 Whitespace fixes.
This is just whitespace fixup for all files affected in vehcile-update
branch.
2016-01-03 00:59:10 +01:00
Michał Janiszewski 5f66cd48f8 Merge branch 'develop' into vehicle-update
Conflicts:
	openrct2.vcxproj.filters
2015-12-31 11:41:23 +01:00
IntelOrca 64b589770a remove obsolete callprocs 2015-12-29 11:57:47 +00:00