changeset 7323 | b2871568db92 |
parent 7297 | 1df77fb920bd |
child 7331 | 0a7f00fed4e6 |
7322:e018c792e9b9 | 7323:b2871568db92 |
---|---|
163 case LT_ARCTIC: return (GetClearGround(tile) == CLEAR_SNOW) ? 4 : 0; |
163 case LT_ARCTIC: return (GetClearGround(tile) == CLEAR_SNOW) ? 4 : 0; |
164 default: return 0; |
164 default: return 0; |
165 } |
165 } |
166 } |
166 } |
167 |
167 |
168 TileIndex GetNearbyTile(byte parameter, TileIndex tile) |
|
169 { |
|
170 int8 x = GB(parameter, 0, 4); |
|
171 int8 y = GB(parameter, 4, 4); |
|
172 |
|
173 if (x >= 8) x -= 16; |
|
174 if (y >= 8) y -= 16; |
|
175 |
|
176 return tile + TileDiffXY(x, y); |
|
177 } |