equal
deleted
inserted
replaced
193 // 2x as expensive to add more trees to an existing tile |
193 // 2x as expensive to add more trees to an existing tile |
194 cost += _price.build_trees * 2; |
194 cost += _price.build_trees * 2; |
195 break; |
195 break; |
196 |
196 |
197 case MP_CLEAR: |
197 case MP_CLEAR: |
198 if (_map_owner[ti.tile] != OWNER_NONE) { |
198 if (!IsTileOwner(ti.tile, OWNER_NONE)) { |
199 _error_message = STR_2804_SITE_UNSUITABLE; |
199 _error_message = STR_2804_SITE_UNSUITABLE; |
200 continue; |
200 continue; |
201 } |
201 } |
202 |
202 |
203 // it's expensive to clear farmland |
203 // it's expensive to clear farmland |
394 static void GetTileDesc_Trees(uint tile, TileDesc *td) |
394 static void GetTileDesc_Trees(uint tile, TileDesc *td) |
395 { |
395 { |
396 byte b; |
396 byte b; |
397 StringID str; |
397 StringID str; |
398 |
398 |
399 td->owner = _map_owner[tile]; |
399 td->owner = GetTileOwner(tile); |
400 |
400 |
401 b = _map3_lo[tile]; |
401 b = _map3_lo[tile]; |
402 (str=STR_2810_CACTUS_PLANTS, b==0x1B) || |
402 (str=STR_2810_CACTUS_PLANTS, b==0x1B) || |
403 (str=STR_280F_RAINFOREST, IS_BYTE_INSIDE(b, 0x14, 0x1A+1)) || |
403 (str=STR_280F_RAINFOREST, IS_BYTE_INSIDE(b, 0x14, 0x1A+1)) || |
404 (str=STR_280E_TREES, true); |
404 (str=STR_280E_TREES, true); |