diff options
author | rubidium <rubidium@openttd.org> | 2010-08-28 19:45:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-28 19:45:56 +0000 |
commit | c862ab42c9fba0228834ecdf7394e51b18f88302 (patch) | |
tree | 1d1d69e4bd22b3acf59b0cecac5eec3fe061f43c /src/object_gui.cpp | |
parent | 7b16c7650bb5df437f7ba98acb1fdd917f4b8177 (diff) | |
download | openttd-c862ab42c9fba0228834ecdf7394e51b18f88302.tar.xz |
(svn r20671) -Add: feature F (not action F as written mistakenly in the previous message) support for the scenario editor
Diffstat (limited to 'src/object_gui.cpp')
-rw-r--r-- | src/object_gui.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/object_gui.cpp b/src/object_gui.cpp index 31a1f93e7..3246b5fdd 100644 --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -165,7 +165,13 @@ public: if (FillDrawPixelInfo(&tmp_dpi, r.left, r.top, r.right - r.left + 1, r.bottom - r.top + 1)) { DrawPixelInfo *old_dpi = _cur_dpi; _cur_dpi = &tmp_dpi; - DrawNewObjectTileInGUI((r.right - r.left) / 2 - 1, this->object_height + OBJECT_MARGIN, spec); + if (spec->grf_prop.grffile == NULL) { + extern const DrawTileSprites _objects[]; + const DrawTileSprites *dts = &_objects[spec->grf_prop.local_id]; + DrawOrigTileSeqInGUI((r.right - r.left) / 2 - 1, this->object_height + OBJECT_MARGIN, dts, PAL_NONE); + } else { + DrawNewObjectTileInGUI((r.right - r.left) / 2 - 1, this->object_height + OBJECT_MARGIN, spec); + } _cur_dpi = old_dpi; } break; |