equal
deleted
inserted
replaced
373 { |
373 { |
374 if (_offset_ground_sprites) { |
374 if (_offset_ground_sprites) { |
375 // offset ground sprite because of foundation? |
375 // offset ground sprite because of foundation? |
376 AddChildSpriteScreen(image, _cur_vd->offs_x, _cur_vd->offs_y); |
376 AddChildSpriteScreen(image, _cur_vd->offs_x, _cur_vd->offs_y); |
377 } else { |
377 } else { |
378 _added_tile_sprite = true; |
378 _added_tile_sprite = true; |
379 DrawGroundSpriteAt(image, _cur_ti->x, _cur_ti->y, _cur_ti->z); |
379 DrawGroundSpriteAt(image, _cur_ti->x, _cur_ti->y, _cur_ti->z); |
380 } |
380 } |
381 } |
381 } |
382 |
382 |
383 |
383 |
593 |
593 |
594 #endif |
594 #endif |
595 |
595 |
596 static void DrawSelectionSprite(uint32 image, const TileInfo *ti) |
596 static void DrawSelectionSprite(uint32 image, const TileInfo *ti) |
597 { |
597 { |
598 AddSortableSpriteToDraw(image, ti->x, ti->y, 0x10, 0x10, 1, ti->z + 7); |
598 if (_added_tile_sprite && !(_thd_ptr->drawstyle & HT_LINE)) { // draw on real ground |
|
599 DrawGroundSpriteAt(image, ti->x, ti->y, ti->z + 7); |
|
600 } else { // draw on top of foundation |
|
601 AddSortableSpriteToDraw(image, ti->x, ti->y, 0x10, 0x10, 1, ti->z + 7); |
|
602 } |
599 } |
603 } |
600 |
604 |
601 static bool IsPartOfAutoLine(int px, int py) |
605 static bool IsPartOfAutoLine(int px, int py) |
602 { |
606 { |
603 const TileHighlightData *thd = _thd_ptr; |
607 const TileHighlightData *thd = _thd_ptr; |