Old revision #pb5h0iyqg | New revision #phscfj8mp | ||
---|---|---|---|
1 | MakeStation(t + TileOffsByDiagDir(d), IsWaterTile(t + TileOffsByDiagDir(d)) ? HasTileWaterClass(t + TileOffsByDiagDir(d)) && GetWaterClass(t + TileOffsByDiagDir(d)) == WATER_CLASS_RIVER ? HasBit(_me[t + TileOffsByDiagDir(d)].m6, 0) ? o : GetTileOwner(t + TileOffsByDiagDir(d)) : GetTileOwner(t + TileOffsByDiagDir(d)) : wc == WATER_CLASS_SEA ? OWNER_WATER : o, sid, STATION_DOCK, GFX_DOCK_BASE_WATER_PART + DiagDirToAxis(d), wc); | 1 | MakeStation(t + TileOffsByDiagDir(d), IsWaterTile(t + TileOffsByDiagDir(d)) ? HasTileWaterClass(t + TileOffsByDiagDir(d)) && GetWaterClass(t + TileOffsByDiagDir(d)) == WATER_CLASS_RIVER ? HasBit(_me[t + TileOffsByDiagDir(d)].m6, 0) ? o : GetTileOwner(t + TileOffsByDiagDir(d)) : GetTileOwner(t + TileOffsByDiagDir(d)) : wc == WATER_CLASS_SEA ? OWNER_WATER : o, sid, STATION_DOCK, GFX_DOCK_BASE_WATER_PART + DiagDirToAxis(d), wc); |
2 | 2 | ||
3 | 3 | ||
4 | int t2 = t + TileOffsByDiagDir(d); | 4 | MakeStation(t + TileOffsByDiagDir(d), |
5 | /* I need a big comment here */ | 5 | IsWaterTile(t + TileOffsByDiagDir(d)) ? |
6 | if (IsWaterTile(t2)) { | 6 | HasTileWaterClass(t + TileOffsByDiagDir(d)) && GetWaterClass(t + TileOffsByDiagDir(d)) == WATER_CLASS_RIVER ? |
7 | if (HasTileWaterClass(t2) && GetWaterClass(t2) == WATER_CLASS_RIVER) { | 7 | HasBit(_me[t + TileOffsByDiagDir(d)].m6, 0) ? |
8 | if (HasBit(_me[t2].m6, 0)) { | 8 | o : |
9 | } else { | 9 | GetTileOwner(t + TileOffsByDiagDir(d)) : |
10 | o = GetTileOwner(t2); | 10 | GetTileOwner(t + TileOffsByDiagDir(d)) : |
11 | } | 11 | wc == WATER_CLASS_SEA ? |
12 | o = GetTileOwner(t2); | 12 | OWNER_WATER : |
13 | } else { | 13 | o, |
14 | if (wc == WATER_CLASS_SEA) { | 14 | sid, STATION_DOCK, GFX_DOCK_BASE_WATER_PART + DiagDirToAxis(d), wc); |
15 | o = OWNER_WATER; | 15 | } |
16 | } else { | ||
17 | } | ||
18 | } | ||
19 | } | ||
20 | |||
21 | MakeStation(t2, o, sid, STATION_DOCK, GFX_DOCK_BASE_WATER_PART + DiagDirToAxis(d), wc); |