-
-
Notifications
You must be signed in to change notification settings - Fork 957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Multi-tile docks. #7380
Conversation
7a24412
to
d7a47e8
Compare
Found one issue, if there's a suitable tile behind the dock, ships could also dock there. This may be desirable in the future but is not for the current style of dock, I think. |
d7a47e8
to
b77271b
Compare
f3bf3f4
to
57b6d6a
Compare
57b6d6a
to
4d6f241
Compare
9f89162
to
905960f
Compare
Testing this in a game currently. No issues so far. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, why not
/* Check docking tile for occupancy */ | ||
uint count = 1; | ||
HasVehicleOnPos(current->tile, &count, &CountShipProc); | ||
cost += count * 3 * _trackdir_length[trackdir]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why * 3
?
m1 bit 7 is (ab)used to mark docking tiles. These can be on MP_WATER, MP_RAILWAY (half-tile on water), MP_STATION (buoys) and MP_TUNNELBRIDGE (aqueduct ends)