equal
deleted
inserted
replaced
130 _m[t].m5 = section; |
130 _m[t].m5 = section; |
131 } |
131 } |
132 |
132 |
133 static inline void MakeLock(TileIndex t, Owner o, DiagDirection d) |
133 static inline void MakeLock(TileIndex t, Owner o, DiagDirection d) |
134 { |
134 { |
135 TileIndexDiff delta = TileOffsByDir(d); |
135 TileIndexDiff delta = TileOffsByDiagDir(d); |
136 |
136 |
137 MakeLockTile(t, o, LOCK_MIDDLE + d); |
137 MakeLockTile(t, o, LOCK_MIDDLE + d); |
138 MakeLockTile(t - delta, o, LOCK_LOWER + d); |
138 MakeLockTile(t - delta, o, LOCK_LOWER + d); |
139 MakeLockTile(t + delta, o, LOCK_UPPER + d); |
139 MakeLockTile(t + delta, o, LOCK_UPPER + d); |
140 } |
140 } |