duncanspumpkin
551afeef86
Fix #4096 . Max map elements incorrectly sized
...
Due to a mistake from 2014 the number of map elements that could be used in a park was mistakenly assumed to be the same size as the s6 data for map elements. It turns out there are 256*256 spare elements for whatever reason. When the map element reorginisation code was refactored to remove magic numbers this incorrect value was used instead. This would cause the map element inserter to allocate a map element that shared the same mememory as a sprite. This would cause issues when the sprite tried to update or the map element tried to draw.
2016-07-18 17:49:51 +01:00
Michał Janiszewski
78e2aec5fe
Make map element arrays static
2016-06-16 22:51:28 +02:00
Michał Janiszewski
c2bf4b75e7
Integrate tile map element pointers usage ( #3442 )
2016-06-16 19:05:15 +02:00
Marijn van der Werf
9de7492121
Start decompilation of 0x6A3590
2016-06-11 11:06:53 +02:00
Michał Janiszewski
1508e49a28
Change macro to assert_struct_size
2016-06-03 11:29:50 +02:00
Michał Janiszewski
934ce5e84e
Fix 64 bit by skipping static_asserts for structs with pointers
2016-06-03 10:55:21 +02:00
Michał Janiszewski
60630b9ad7
Drop PACKED attribute
2016-06-03 10:55:21 +02:00
Michał Janiszewski
df3030e4a9
Provide static_assert for hard-coded struct sizes.
2016-06-03 10:55:21 +02:00
Michał Janiszewski
3907fcd9d2
Explicitly pack structs
2016-06-03 10:55:21 +02:00
Ted John
14825a8dbc
integrate queue chain and refactor
2016-05-17 21:29:05 +01:00
Ted John
c879638f22
integrate ground flag variables
2016-05-17 20:51:11 +01:00
Ted John
81efb92d53
integrate map selection variables
2016-05-14 00:54:13 +01:00
janisozaur
658e877955
Name all the typdef-ed structs ( #3581 )
2016-05-12 22:57:40 +01:00
janisozaur
8d0481deba
Make sure to only update valid vehicles ( #3543 )
...
Lets us load parks like Six Flags Carolina:
http://www.nedesigns.com/park/1571/six-flags-carolina/
2016-05-09 15:52:03 +01:00
Ted John
e9935fee09
refactor some of the track design place code
2016-05-08 14:02:48 +01:00
Ted John
2ecbcfc4c9
Merge pull request #3165 from marijnvdwerf/spiral-slide-paint-setup
2016-05-07 18:05:05 +01:00
janisozaur
68bad6505c
Add and correct licence headers to all sources ( #3108 )
2016-05-04 18:24:41 +01:00
Marijn van der Werf
724089b8da
draw fences
2016-04-27 23:15:17 +02:00
Ted John
cea0f30121
integrate variable: gLandToolSize
2016-04-24 18:02:37 +01:00
Ted John
1fcefcfa7e
integrate variables for water tool
2016-04-24 17:58:26 +01:00
Ted John
fc938892d8
integrate variables for command position and expenditure
2016-04-24 17:53:39 +01:00
Ted John
b9944dd33a
integrate land tool variables
2016-04-24 17:28:12 +01:00
Ted John
15031b9511
add global macro: gGrassSceneryTileLoopPosition
2016-04-24 14:33:43 +01:00
Ted John
d18ea8570d
add global macro: gNextFreeMapElement
2016-04-24 14:30:21 +01:00
Ted John
0f6e64ac76
add global macros for map size and tile loop
2016-04-24 14:00:26 +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
duncanspumpkin
f267af3356
Fix chairlift bullwheel rotation animation.
...
Issue caused by incorrect check for breakdown
2016-02-18 20:32:04 +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
9c3055224d
Refactor clear funcs
2016-02-13 21:01:36 +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
duncanspumpkin
0f6c8b8760
Refactor get small scenery to prevent repeats of #2735 .
2016-01-16 11:04:06 +00:00
Michał Janiszewski
133096cd64
Merge branch 'develop' into vehicle-update
2016-01-05 09:59:53 +01:00
duncanspumpkin
797a2cc75d
Fix bug with block breaks when there are track overlaps.
...
Labeled map_flag (1<<5) as block break closed as well.
2016-01-02 17:04:39 +00:00
Hielke Morsink
855e122b55
Printing path and addition names in tile inspector.
2016-01-01 21:28:48 +01:00
Michał Janiszewski
4c6ee9570c
Merge branch 'develop' into vehicle-update
...
Conflicts:
openrct2.vcxproj.filters
2015-12-27 18:11:13 +01:00
Michał Janiszewski
e3f5ea25ae
Map unknown elem type to corrupt, update tile inspector
...
In map view, all unknown types are mapped to MAP_ELEMENT_TYPE_CORRUPT,
the type that prevents rendering of all following elements on given
tile.
Tile inspector now displays element type (numeric value) for unknown
types.
2015-12-27 10:34:02 +01:00
IntelOrca
4f56709455
implement more sub_6DAB4C
2015-12-14 15:18:19 +00:00
Linus Unnebäck
017899c0d9
small fixes to world/map.c
2015-12-13 21:45:58 +01:00
duncanspumpkin
485705f1cb
Fix incorrect parameter type
2015-11-15 10:05:22 +00:00
duncanspumpkin
13e43b779b
Refactor large scenery placement
2015-11-14 16:44:03 +00:00
duncanspumpkin
d0332c81d8
Refactor and move wide flag code.
2015-11-14 00:08:31 +00:00
duncanspumpkin
aa55ca6b62
Refactor banner_remove. Fixed an original bug.
...
Banners that are placed on two different heights that face the same direction will end up bugging out. This has now been fixed. This required modification of the top toolbar code in order to correctly set the z variable.
2015-11-13 18:30:14 +00:00
duncanspumpkin
a0014eee09
Refactor set scenery and fence.
2015-11-12 19:22:08 +00:00
zsilencer
a95357a32d
signs and banners editable in multiplayer
2015-10-31 11:07:36 -06:00
IntelOrca
8d84b540ad
add vehicle struct and enum labels from vehicle-update branch.
2015-10-25 21:26:03 +00:00