equal
deleted
inserted
replaced
238 #include "table/tree_land.h" |
238 #include "table/tree_land.h" |
239 |
239 |
240 |
240 |
241 static void DrawTile_Trees(TileInfo *ti) |
241 static void DrawTile_Trees(TileInfo *ti) |
242 { |
242 { |
243 byte m2; |
243 uint16 m2; |
244 const uint32 *s; |
244 const uint32 *s; |
245 const byte *d; |
245 const byte *d; |
246 byte z; |
246 byte z; |
247 TreeListEnt te[4]; |
247 TreeListEnt te[4]; |
248 |
248 |
457 MarkTileDirtyByTile(tile); |
457 MarkTileDirtyByTile(tile); |
458 } |
458 } |
459 |
459 |
460 static void TileLoop_Trees(uint tile) |
460 static void TileLoop_Trees(uint tile) |
461 { |
461 { |
462 byte m5, m2; |
462 byte m5; |
|
463 uint16 m2; |
463 |
464 |
464 static const TileIndexDiff _tileloop_trees_dir[] = { |
465 static const TileIndexDiff _tileloop_trees_dir[] = { |
465 TILE_XY(-1,-1), |
466 TILE_XY(-1,-1), |
466 TILE_XY(0,-1), |
467 TILE_XY(0,-1), |
467 TILE_XY(1,-1), |
468 TILE_XY(1,-1), |
480 |
481 |
481 TileLoopClearHelper(tile); |
482 TileLoopClearHelper(tile); |
482 |
483 |
483 /* increase counter */ |
484 /* increase counter */ |
484 { |
485 { |
485 byte m2 = _map2[tile]; |
486 uint16 m2 = _map2[tile]; |
486 _map2[tile] = m2 = (m2 & 0xF0) | ((m2+1)&0xF); |
487 _map2[tile] = m2 = (m2 & 0xF0) | ((m2+1)&0xF); |
487 if (m2 & 0xF) |
488 if (m2 & 0xF) |
488 return; |
489 return; |
489 } |
490 } |
490 |
491 |