improved oil rig layout 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: 341
Joined: 26 Feb 2015 00:52

improved oil rig layout patch

Post by xarick »

This Oil Rig Layout won't block ships docking when an Oil Rig is spawned in front of another Oil Rig.

This Layout: https://paste.openttdcoop.org/pjeffivhq

Code: Select all

/*
   -4 -3 -2 -1 00 01 02 03 04 05 ->>> x
-4 xx xx xx xx xx xx xx xx xx xx
-3 xx                         xx
-2 xx                         xx
-1 xx       xx xx xx xx       xx
00 xx       xx 18 1A xx       xx
01 xx       xx 18 1B xx       xx
02 xx       xx 19 1C xx       xx
03 xx       xx xx xx xx       xx
04 xx                         xx
05 xx                         xx
06 xx xx xx xx xx xx xx xx xx xx

^
^
|
y

*/
Original Layout: https://paste.openttdcoop.org/p3qegpnbn

Code: Select all

/*
   -4 -3 -2 -1 00 01 02 03 04 05 ->>> x
-4 xx xx xx xx xx xx xx xx xx xx
-3 xx                         xx
-2 xx                         xx
-1 xx                         xx
00 xx          18 1A xx       xx
01 xx          18 1B          xx
02 xx          19 1C          xx
03 xx                         xx
04 xx                         xx
05 xx                         xx
06 xx xx xx xx xx xx xx xx xx xx

^
^
|
y

*/
As a NewGRF:
Side effect: Oil Rigs can spawn everywhere, not only on the edge of the world (as a NewGRF)
Source: https://paste.openttdcoop.org/puowthf5w
Download: http://binaries.openttd.org/bananas/new ... t-3.tar.gz

As a patch:
Side effect: None
Source: https://paste.openttdcoop.org/pohm0nsgs
improved oil rig layout.patch
(521 Bytes) Downloaded 147 times
Formerly known as Samu
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: wyndbain and 40 guests