summaryrefslogtreecommitdiff
path: root/src/engine_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-09-02 20:55:55 +0000
committeralberth <alberth@openttd.org>2009-09-02 20:55:55 +0000
commit0f9da2d6363907e1e48cc4d93909667a52aef580 (patch)
tree1bf2c63fa6b6c5e98714f492c4dd560d985d28f6 /src/engine_gui.cpp
parentc0b9a6a9bc07b072d0178427836809650609f402 (diff)
downloadopenttd-0f9da2d6363907e1e48cc4d93909667a52aef580.tar.xz
(svn r17397) -Codechange: Add new vehicle news window.
Diffstat (limited to 'src/engine_gui.cpp')
-rw-r--r--src/engine_gui.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp
index 7a1503c86..c6f3d02e9 100644
--- a/src/engine_gui.cpp
+++ b/src/engine_gui.cpp
@@ -263,25 +263,6 @@ void DrawVehicleEngine(int x, int y, EngineID engine, SpriteID pal)
}
}
-void DrawNewsNewVehicleAvail(Window *w, const NewsItem *ni)
-{
- assert(ni->reftype1 == NR_ENGINE);
- EngineID engine = ni->ref1;
-
- SetDParam(0, GetEngineCategoryName(engine));
- DrawStringMultiLine(1, w->width - 2, 0, 56, STR_NEWS_NEW_VEHICLE_NOW_AVAILABLE, TC_FROMSTRING, SA_CENTER);
-
- GfxFillRect(25, 56, w->width - 25, w->height - 2, 10);
-
- SetDParam(0, engine);
- DrawStringMultiLine(1, w->width - 2, 56, 88, STR_NEWS_NEW_VEHICLE_TYPE, TC_FROMSTRING, SA_CENTER);
-
- DrawVehicleEngine(w->width >> 1, 88, engine, GetEnginePalette(engine, _local_company));
- GfxFillRect(25, 56, w->width - 56, 112, PALETTE_TO_STRUCT_GREY, FILLRECT_RECOLOUR);
- DrawStringMultiLine(26, w->width - 26, 100, 170, GetEngineInfoString(engine), TC_FROMSTRING, SA_CENTER);
-}
-
-
/** Sort all items using qsort() and given 'CompareItems' function
* @param el list to be sorted
* @param compare function for evaluation of the quicksort