summaryrefslogtreecommitdiff
path: root/src/unmovable_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-02-16 02:37:31 +0000
committerbelugas <belugas@openttd.org>2008-02-16 02:37:31 +0000
commit6ff5a8a29fda832275f8960ed1620003d022e4ee (patch)
tree60eeea05f68ba48799ca4e98963d07b99db5f227 /src/unmovable_cmd.cpp
parent7d45415b3d8dff7f1a063274bf535c6b0fa32828 (diff)
downloadopenttd-6ff5a8a29fda832275f8960ed1620003d022e4ee.tar.xz
(svn r12157) -Codechange: Remove a structure definition and replace it with another one closely matching
-Codechange: Replace two magic numbers with according sprite names
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r--src/unmovable_cmd.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp
index f02eac7da..345e9f0c3 100644
--- a/src/unmovable_cmd.cpp
+++ b/src/unmovable_cmd.cpp
@@ -167,16 +167,14 @@ static void DrawTile_Unmovable(TileInfo *ti)
switch (GetUnmovableType(ti->tile)) {
case UNMOVABLE_TRANSMITTER:
case UNMOVABLE_LIGHTHOUSE: {
- const DrawTileUnmovableStruct* dtus;
+ const DrawTileSeqStruct* dtu = &_draw_tile_transmitterlighthouse_data[GetUnmovableType(ti->tile)];
if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, FOUNDATION_LEVELED);
DrawClearLandTile(ti, 2);
- dtus = &_draw_tile_unmovable_data[GetUnmovableType(ti->tile)];
-
AddSortableSpriteToDraw(
- dtus->image, PAL_NONE, ti->x | dtus->subcoord_x, ti->y | dtus->subcoord_y,
- dtus->width, dtus->height, dtus->z_size, ti->z,
+ dtu->image.sprite, PAL_NONE, ti->x | dtu->delta_x, ti->y | dtu->delta_y,
+ dtu->size_x, dtu->size_y, dtu->size_z, ti->z,
IsTransparencySet(TO_STRUCTURES)
);
break;