easier dock placement patch

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
xarick
Transport Coordinator
Transport Coordinator
Posts: 278
Joined: 26 Feb 2015 00:52

easier dock placement patch

Post by xarick »

Purpose of this patch is to ease the rules a bit when placing docks, in regards to the third tile check, the water tile.

v1:
- It allows construction if it is an aqueduct head.
- It allows construction if it is a buoy.
- It allows construction if it is a water tile with one corner raised and without a rail track on the opposite corner.

v2:
- It allows construction if it is a water tile with one corner raised and with a rail track on the opposite corner.

v3:
- Changed the way the code checks for stuff, so that it doesn't allow the docks to be placed in front of other docks, as well as oil rigs and probably some other tile types that I'm not even aware which would end in the dock entrance being innaccessible for ships (due to noob coding skills).

Note: There is a similar patch here viewtopic.php?f=33&t=75230 but without allowing construction on water tiles with one corner raised, for AI compatibility purposes.
Attachments
easier dock placement v1 r27653.patch
(1.05 KiB) Downloaded 35 times
easier dock placement v2 r27654.patch
(1.14 KiB) Downloaded 33 times
easier dock placement v3 r27654.patch
(1.27 KiB) Downloaded 28 times
Formerly known as Samu

Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 3 guests