1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00
Commit Graph

181 Commits

Author SHA1 Message Date
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
Duncan Frost
54a37edb44 Implemented clear scenery update
Not tested.
2015-05-30 06:27:47 +01:00
IntelOrca
6426adb45d remove asm for set scroll size and add gCurrentAwards 2015-05-26 19:28:56 +01:00
Robert Jordan
ab942236d7 Added in-game object selection
New console commands:
- open (opens a window)
- windows (lists windows usable with open)
- load_object (loads the specified obj with the given filename)
- object_count (lists the number of objects in the scenary)
Console commands now have a usage variable.

Use: "open object_selection" for the object selection window.
Once the object selection window is closed, all objects will
automatically be researched whether or not they were already in the base
scenario.
The object selection window will close any other windows when selecting
an object to prevent a crash.
2015-05-23 14:56:54 -04: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
Duncan Frost
3008d56851 Fix #1098.
Forgot to increment the mapElement after during loop.
2015-05-19 17:41:32 +01:00
Duncan Frost
a69575dbea Refactor of update_park_fences
Now uses functions to work out map location ownership.
Also uses mapElements instead of tileIdxs.
2015-05-18 18:27:01 +01:00
Robert Jordan
eb85b8f4dd One small mispelled function fix 2015-05-17 12:42:43 -04: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
6d5a07f7ef Finished cleaning up land rights tool code 2015-05-15 15:19:36 -04: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
Timmy Weerwag
10c4722a86 Deciphered flags and z param of get_map_coordinates_from_pos 2015-05-03 13:54:08 +02:00
Duncan Frost
1728aebb8c Fix #958.
Issue was caused by an old bit of code that had been added in the force weather cheat to keep it sunny for longer before realising how the climate operated correctly. Instead now it sets the weather to the desired value and starts a normal amount of waiting time before returning to the normal weather cycle.
2015-04-28 17:11:46 +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
e04165eef4 Refactoring and bug fixing.
Noticed a bug that was causing path bits to fail to be changed.
Reduced compile warnings by using ints for coordinates.
Rearanged colour picker to stop bug that prevents its use when first clicked.
2015-04-23 20:40:53 +01:00
Duncan Frost
9749d7d602 Added path bit placement
Fixed bug in footpath_place_real that causes it to not place path bits.
2015-04-23 17:23:01 +01:00
Duncan Frost
d0420eef0b Refactor to use defined pathBit entry address. 2015-04-22 21:03:44 +01: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
Duncan Frost
f9c9e9b9aa Added scenery_remove_ghost_tool_placement 2015-04-17 17:36:26 +01:00
Ted John
e08e4b7f61 Merge pull request #988 from Garogolun/footpath-stuff
Added two footpath functions
2015-04-12 23:15:20 +01:00
Timmy Weerwag
930a9d61dd Fixes for a couple of warnings 2015-04-12 23:26:15 +02:00
Timmy Weerwag
05fa87ad5d Fixed warnings 2015-04-04 15:22:37 +02:00
Timmy Weerwag
b20efdada8 Refactored common code into viewport_coord_to_map_coord 2015-04-03 21:11:03 +02:00
Timmy Weerwag
8e11c6528d Coding style 2015-04-02 17:19:21 +02:00
Timmy Weerwag
585f85c725 Improved footpath_get_coordinates_from_pos a bit 2015-04-02 16:38:40 +02:00
IntelOrca
d86f15c87d Fix bug in rct1_fix_entrance_positions.
Refactor RCT1 import.
Allow rotate shortcut to rotate park entrance placement.
2015-04-01 21:23:05 +01:00
Timmy Weerwag
6cb205c9cc Added footpath_get_coordinates_from_pos 2015-04-01 02:28:47 +02:00
Timmy Weerwag
fe799f03a5 Added footpath_bridge_get_info_from_pos 2015-04-01 01:45:18 +02:00
IntelOrca
b1d6c34a00 implement money_effect_create 2015-03-31 03:23:40 +01:00