Commit graph

254 commits

Author SHA1 Message Date
IntelOrca
8ec4d61739 add callfunc wrappers for the last three remaining game commands and remove original call table 2015-10-10 20:26:17 +01:00
duncanspumpkin
7297fc86e9 Fix #2029. Issue with 1x1 land ownership tool 2015-10-04 20:22:50 +01:00
Ted John
c1ecf3c531 Merge pull request #2024 from duncanspumpkin/set_land_ownership
Implemented game_command_set_land_ownership.
2015-10-04 01:06:29 +01:00
duncanspumpkin
625e051d35 Fix #2025. Issue caused by failing to check if coordinates outside of map 2015-10-04 00:35:26 +01:00
duncanspumpkin
3f77a6778a Implemented game_command_set_land_ownership.
Refactored map buy land rights for tile as it was partially broken and used a very odd style.
2015-10-04 00:07:22 +01:00
duncanspumpkin
33e04b8bd6 Implement game_command_place_park_entrance 2015-10-01 21:24:24 +01:00
zsilencer
0af364a9b6 fix #1944 2015-09-21 10:41:09 -06:00
IntelOrca
4dd95c650b implement RideData4 data 2015-09-10 22:16:41 +01:00
IntelOrca
efada641a5 implement map_place_fence_check_obstruction 2015-09-06 17:36:55 +01:00
IntelOrca
2753af893b implement map_obstruction_set_error_text 2015-09-06 13:37:00 +01:00
Gymnasiast
87eb6335ea Remove unused variable 2015-09-04 15:10:09 +02:00
Gymnasiast
03034e7e2a Clear all map elements beforing generating a new map, fixes #1762 2015-08-31 12:42:46 +02:00
Gymnasiast
308b086c55 Name some addresses, clean up strings ids and usage 2015-08-27 16:19:17 +02:00
Ted John
6a88ca17d0 Merge pull request #1835 from medsouz/cleanupscenery
Add names for all memory addresses in world/scenery.c
2015-08-22 17:43:28 +01:00
Runelaenen
fb5921db6d First headless version 2015-08-19 18:07:04 +02:00
medsouz
4207b41855 Name more addresses 2015-08-18 23:53:24 -04:00
medsouz
7071bd9353 Document more addresses
Created defines for all the memory addresses I could find in peep/staff.c
and updated everywhere they're being used.
2015-08-16 18:25:17 -04:00
IntelOrca
3f31221973 fix network merge issues, fix #1785 2015-08-14 22:06:15 +01:00
zsilencer
c1e802e361 fix text for utf8 2015-08-14 09:15:07 -06:00
zsilencer
56f8954e27 fix clear scenery for network 2015-08-14 09:13:39 -06:00
Gymnasiast
810bd0620a Fix Clear Scenery tool in Scenario Editor 2015-08-11 17:54:21 +02:00
IntelOrca
cb3abcb0ca fix #1612 2015-08-05 21:49:44 +01:00
IntelOrca
2419c6629e improve clear scenery tool 2015-08-04 16:01:31 +01:00
olegv11
8ea6adc555 Implemented sub_6A87BB (now update_path_wide_flags), sub_6A8ACF and sub_6A8B12 2015-07-31 13:38:34 +03:00
IntelOrca
3a07af140b Implement more peep path finding 2015-07-28 18:33:46 +01:00
zsilencer
c4a8d27648 fix couple of bugs 2015-07-25 08:50:59 -06:00
Ted John
2d11e54fa7 Merge pull request #1670 from duncanspumpkin/peep
Peep
2015-07-25 11:32:25 +01:00
Duncan Frost
812010001d Implement guest surface path finding 2015-07-25 11:16:59 +01:00
zsilencer
bb46510def implement map_can_construct_with_clear_at 2015-07-24 20:52:14 -06:00
IntelOrca
faacd66ad9 allow trees to be raised if supports limits are disabled, close #1663 2015-07-23 18:55:51 +01:00
IntelOrca
cde0cece16 implement rct1_fix_walls 2015-07-14 23:15:21 +01:00
IntelOrca
345b71f8a4 implement rct1_clear_extra_sprite_entries and rct1_clear_extra_tile_entries 2015-07-13 23:49:39 +01:00
IntelOrca
3ffffc699c clean up and remove various callprocs 2015-07-12 01:46:52 +01:00
IntelOrca
9e9eb6a833 implement banner_get_closest_ride_index 2015-07-11 20:24:27 +01:00
IntelOrca
fbd402eb67 implement remaining screen_get_map_xy... functions 2015-07-11 18:23:59 +01:00
zsilencer
aeeca2454a fixed source of non-deterministicness 2015-07-11 12:31:11 +01:00
IntelOrca
4fceb28017 fix sandbox variable rename 2015-07-10 21:32:12 +01:00
Duncan Frost
4d56572fd4 Fix large scenery ghost issue. 2015-07-10 21:32:11 +01:00
IntelOrca
d5ffaefdf0 add better disable clearance cheat 2015-07-10 21:32:11 +01:00
zsilencer
451bf7100b fix #1570 and possibly #1572 2015-07-09 09:04:24 -06:00
IntelOrca
0ab33d67e8 implement footpath_connect_edges 2015-07-07 19:09:48 +01:00
IntelOrca
f859eefc4b implement footpath_remove_edges_at 2015-07-06 22:13:04 +01:00
IntelOrca
181a2e6209 implement map_remove_walls_at 2015-07-06 20:30:03 +01:00
IntelOrca
0def7c0883 refactor invalidation of map tiles and viewports 2015-07-06 18:57:36 +01:00
IntelOrca
9e26a6149f implement sign_set_colour and fix gfx_invalidate_viewport_tile 2015-07-06 17:59:55 +01:00
IntelOrca
6de7a38f53 implement finish-map-window part 4 2015-07-02 00:37:55 +01:00
IntelOrca
c441ee2d1b implement finish-map-window part 2 2015-07-01 15:17:25 +01:00
Duncan Frost
0b60465b65 Fix map element reorganise crash.
Fixes #1518. I've also refactored the code slightly. Issue was caused by memsetting the wrong buffer.
2015-06-30 18:08:49 +01:00
zsilencer
9578606251 implement game_command_set_water_height 2015-06-29 11:49:17 -06:00
IntelOrca
19edd8a3bb refactor game command enum 2015-06-29 17:36:07 +01:00
IntelOrca
40ba6a3efa remove various callprocs 2015-06-29 17:22:01 +01:00
Duncan Frost
2c3c8dc188 Fix incorrect pointer maths. Fixes #1511. 2015-06-28 19:46:08 +01:00
IntelOrca
ed41c2b995 fix map_reorganise_elements 2015-06-28 18:59:55 +01:00
Ted John
b1b61e7df5 Merge pull request #1509 from duncanspumpkin/map_functions
Map functions
2015-06-28 18:03:53 +01:00
IntelOrca
e2a694b96e implement format_string_toupper and litter_create 2015-06-28 17:45:19 +01:00
Duncan Frost
33c4698e06 Implemented map_reorganise_elements.
Fixed a potential issue that would cause cursors to become stuck.
2015-06-28 16:50:21 +01:00
Duncan Frost
8167c24526 Implemented sub_68B044 some sort of check to make sure there is space for new element.
If there isn't then it will try reorganise the elements to make room.
2015-06-28 13:53:24 +01:00
Duncan Frost
5e3df22414 Implemented map element remove. Small tidy of functions in game.c. 2015-06-28 13:31:46 +01:00
IntelOrca
57fd914a52 implement ride construction 2015-06-27 15:17:54 +01:00
IntelOrca
086370a7fc fix #1429 2015-06-23 02:58:15 +01:00
IntelOrca
9701b1e0f6 fix warnings 2015-06-23 02:58:14 +01:00
Duncan Frost
d5c19437ac Make generic version of 98197C rotations. Refactor.
I've added a new function coordinate 3d to 2d. There are still quite a few different versions of this same code throughout the project that should be changed to use this function.
2015-06-21 16:23:25 +01:00
Duncan Frost
9958ffc0f7 Started refactor of viewport drawing
Renabled banner paint setup
2015-06-21 16:23:16 +01:00
IntelOrca
c6b7ab2ff4 Merge branch 'pre-release-0.0.2' into develop 2015-06-21 13:56:07 +01:00
IntelOrca
d193348792 fix game_command_set_fence_colour 2015-06-21 12:42:31 +01:00
Gymnasiast
858faa3303 Adjust game_command_place_fence for sandbox mode and build in pause mode. 2015-06-21 13:40:44 +02:00
Duncan Frost
b1183757ec Fix banner bug. Small refactor 2015-06-21 12:07:44 +01:00
Duncan Frost
f36d17651d Implemented game_command_place_fence.
There are a couple of bugs involveing signs.
2015-06-21 11:43:52 +01:00
IntelOrca
926f6838b4 Merge branch 'pre-release-0.0.2' into develop 2015-06-20 16:26:56 +01:00
IntelOrca
b5fcdcf32a fix placement of large scenery 2015-06-20 16:26:42 +01:00
IntelOrca
18f33f806c implement sub_68ADBC 2015-06-20 16:24:38 +01:00
zsilencer
2a82491514 #1396 2015-06-19 10:26:22 -06:00
IntelOrca
4ebf6dd913 fix #1374 2015-06-17 16:32:50 +01:00
IntelOrca
32046c3c0a improve saving of S6 data and remove ghost banners / user strings 2015-06-15 22:08:03 +01:00
IntelOrca
b206a31cae fix #1145 by removing ghost map elements and trackless rides when saving 2015-06-15 17:27:11 +01:00
zsilencer
28f58b768c fix animation invalidation in large scenery 2015-06-14 15:59:34 -06:00
zsilencer
9419e3a2ec fix a crash in large scenery placement 2015-06-14 14:23:18 -06:00
Gymnasiast
95966f6346 Allow building large scenery outside park borders in sandbox mode. 2015-06-14 15:07:08 +02:00
zsilencer
d2b565b283 game_command_place_large_scenery 2015-06-14 05:56:41 -06:00
IntelOrca
ee7a2c47f4 refactor map size 2015-06-13 19:11:26 +01:00
Gymnasiast
732319514f Allow building in pause mode via a cheat 2015-06-10 19:35:53 +02:00
IntelOrca
a24ffd1f79 fix refactor error in lower_water 2015-06-10 16:38:27 +01:00
IntelOrca
91c73836a3 fix and improve raise and lower land / water / clear scenery 2015-06-10 15:41:50 +01:00
Ted John
dbb7ae8e15 Merge pull request #1284 from trigger-death/decompile-toggle-price
Decompiled toggle ride price and fixed ride price
2015-06-09 23:07:20 +01:00
Robert Jordan
0f955d0d92 Decompiled toggle ride price 2015-06-09 17:00:11 -04:00
Gymnasiast
7ed434a804 Rework land ownership cheat into sandbox mode 2015-06-09 17:19:05 +02:00
IntelOrca
dc3fe2a6c8 remove commented out CALLPROCs and CALLFUNCs 2015-06-09 15:09:45 +01:00
IntelOrca
ed86db0635 fix sign issues with selection rectangle 2015-06-09 14:47:26 +01:00
oli414
a09b103895 Fixed crash when using land/water tool outside map 2015-06-09 14:24:02 +02:00
IntelOrca
eb654a220d implement sub_6A7594 2015-06-09 02:36:02 +01:00
IntelOrca
12b01d6521 implement footpath_remove_litter and footpath_interrupt_peeps 2015-06-09 02:09:18 +01:00
IntelOrca
acfcf2c33b implement a bit of sub_66397F for sandbox mode 2015-06-08 22:19:06 +01:00
Robert Jordan
83fda8fc56 Clear scenery tool now as options
Can now choose to clear small scenery, large scenery, and/or footpaths.
2015-06-05 12:38:52 -04:00
Ted John
b7d293f4dd Merge pull request #1171 from duncanspumpkin/toolbar_funcs
Toolbar Update Functions
2015-05-30 13:00:25 +01:00
Duncan Frost
b2caeaf531 Refactor of code slightly
Since get_map_coordinates_from_pos returns sint16 values I changed it so that it didn't use sint32 values.
2015-05-30 06:27:52 +01:00
Duncan Frost
a59fd26b3d Added update_water
Refactored up/down water commands so that it used more standard layout.
Not tested.
2015-05-30 06:27:51 +01:00
Duncan Frost
573a632e43 Fix bugs in scenery_clear update
Note make a new version of land update to fix cost issue
2015-05-30 06:27:48 +01:00
zsilencer
5c7dc6bb9a #1165 2015-05-29 21:50:32 -06:00
zsilencer
28c2451d97 move data into code, cleanup 2015-05-20 19:21:13 -06:00
zsilencer
9ee4b64fa1 game_command_place_scenery 2015-05-20 19:21:13 -06:00
Duncan Frost
ebcb4ba480 Refactor and bug fix of scenery removal.
Looks like I might have introduced a bug during my last refactor due to using the same name for multiple variables.
2015-05-19 22:08:51 +01:00
Robert Jordan
9529f3e179 Decompiled sub_6EC847 & sub_664D05
sub_6EC847 is named invalidate_viewport_tile
sub_664D05 is named update_park_fences
both functions are in world/park.c
2015-05-17 12:36:16 -04:00
Duncan Frost
328abd1d45 Fix out of bounds errors
Changed get_surface_element to bubble up the null mapElement to be taken care of by the calling function.
Added checks on the track functions to ensure that invalid coordinates do not call get_surface_element_at.
Fixes #1066 and Fixes #1057
2015-05-17 07:58:51 +01:00
IntelOrca
f7972f0d48 Merge branch 'land-rights-tool' of https://github.com/trigger-death/OpenRCT2 into trigger-death-land-rights-tool
Conflicts:
	data/language/english_uk.txt
2015-05-15 22:10:13 +01:00
Robert Jordan
09cc46c1e6 Almost finished land rights tool 2015-05-15 11:28:27 -04:00
Duncan Frost
ed685688e2 More scenery_place.
There is a bug in the path code
2015-05-13 19:19:43 +01:00
Robert Jordan
ceaa97c321 Land tool paint mode, and text input sizes 2015-05-12 11:37:16 -04:00
Duncan Frost
a768d3dc96 Fix large scenery removal bug.
Issue was caused by comparing the height value to the wrong number. I've rejigged the function to make it easier to follow and added in an error message if an element fails to be found.
2015-05-07 19:16:00 +01:00
Duncan Frost
6b8709aed0 Scenery now works correctly in scenario editor
There were a couple bugs that were causing functions to return unsuccessful if you were in scenario editor.
2015-05-07 18:57:14 +01:00
zsilencer
71e21c2a6c refactor mixer, add support for streamed music 2015-04-25 09:28:28 -06:00
zsilencer
3b416a646e create_new_banner done by duncanspumpkin 2015-04-25 09:21:35 -06:00
zsilencer
a8a434e261 game_command_place_banner 2015-04-25 09:21:35 -06:00
zsilencer
c40a6f4789 game_command_remove_banner 2015-04-25 09:21:11 -06:00
zsilencer
b8657da99f game_command_set_banner_colour 2015-04-25 09:21:11 -06:00
zsilencer
4379df67c4 game_command_set_large_scenery_colour 2015-04-25 09:21:11 -06:00
zsilencer
1782a62055 game_command_set_fence_colour 2015-04-25 09:21:11 -06:00
zsilencer
e7d3d8b19d game_command_set_scenery_colour 2015-04-25 09:21:11 -06:00
zsilencer
ed709b8353 game_command_remove_large_scenery 2015-04-25 09:21:11 -06:00
zsilencer
16cb732533 game_command_remove_scenery 2015-04-25 09:20:46 -06:00
zsilencer
68d7f84098 rename 0x80000000 to MONEY32_UNDEFINED 2015-04-25 09:20:46 -06:00
zsilencer
e2d386edbc game_command_remove_fence 2015-04-25 09:20:15 -06:00
zsilencer
9bd620cd99 game_command_raise_water, game_command_lower_water, suggested changes 2015-04-25 09:20:15 -06:00
zsilencer
af46537667 game_command_raise_land, game_command_lower_land 2015-04-25 09:20:15 -06:00
Duncan Frost
e8d27b0424 Finished scenery repaint tool down
Renamed map_element variables that were badly named
Changed scenerymultiple(large) to use the correct size for type. This will cause merge issues with anyone working on large scenery.
2015-04-17 17:36:28 +01:00
IntelOrca
7d383a586e implement map_update_tiles, grass growing and scenery aging 2015-03-22 17:04:50 +00:00
IntelOrca
cd16af0f60 add some event handlers for invalidating map objects 2015-03-18 19:52:45 +00:00
IntelOrca
058f10845f implement map_invalidate_animations 2015-03-17 23:47:54 +00:00
IntelOrca
c0e4518972 refactor some of the footpath code after merging 2015-02-13 20:55:49 +00:00
IntelOrca
e953fdc360 improve random map generator, change algorithm to simplex noise 2015-02-13 03:29:40 +00:00
IntelOrca
9d2abf1925 add map generation window 2015-02-09 18:32:58 +00:00
IntelOrca
dfc723573c fix expenditure table issues, fixes #762 2015-02-08 14:31:57 +00:00
Duncan Frost
0f6dd51736 Added load_palette. Labelled offset for paused and palette effect frame. Fixed fast moving water. 2015-02-07 17:40:20 +00:00
Duncan Frost
359cc9aa99 Add upper bounds 2015-01-29 17:47:35 +00:00
Duncan Frost
fddcfc69e0 Add error logging to get_first_element_at 2015-01-29 17:45:08 +00:00
IntelOrca
36971b29cb implement game_command_set_park_name and game_command_remove_park_entrance 2015-01-27 21:18:41 +00:00
IntelOrca
8774731f03 refactor map element iteration 2015-01-22 00:19:05 +00:00
IntelOrca
0ff125b9b3 move across useful map functions and other bits from footpath branch to develop 2015-01-14 23:38:48 +00:00
Duncan Frost
974ecd904c Finish game command 20 change surface style 2015-01-12 18:39:53 +00:00
Duncan Frost
8a4e12a3f4 Started game_command_20 raise lower land 2015-01-12 18:39:52 +00:00
IntelOrca
44efbd95ac implement more footpath construction and window 2014-12-17 20:45:27 +00:00
IntelOrca
e887311219 add more cheats to cheat window and a small amount of refactoring 2014-12-10 01:44:30 +00:00
IntelOrca
73a6b1acea implement editor_read_s6, partial fix for #433 2014-11-24 02:58:48 +00:00
IntelOrca
d111c715d6 implement viewport_interaction_get_item_left 2014-11-10 00:40:59 +00:00
Duncan Frost
2f64d2a6db Fixed bugs and refactored 2014-11-05 16:35:16 +00:00
IntelOrca
2f4fd67170 implement more viewport input functions 2014-11-05 14:38:19 +00:00
IntelOrca
ad84e6d076 implement ride_modify and supporting methods 2014-11-05 02:55:29 +00:00
IntelOrca
0104042640 Merge branch 'ride-update'
Conflicts:
	src/world/map.c
2014-11-04 19:01:59 +00:00
IntelOrca
d92a4d9418 implement clear scenery game command, try out removing paths feature 2014-11-04 03:34:48 +00:00
IntelOrca
cf59455d69 refactor ride update and fix bugs 2014-11-02 03:38:05 +00:00
IntelOrca
3d40c7e3ee add various ride mechanic functions 2014-11-02 01:41:00 +00:00