(svn r8514) -Codechange: Turn IsBuoy into a method of stations

This commit is contained in:
celestar
2007-02-01 16:48:38 +00:00
parent 33cadd5043
commit 5678febfe2
5 changed files with 13 additions and 9 deletions

View File

@@ -939,7 +939,7 @@ static void DrawSmallOrderList(const Vehicle *v, int x, int y)
sel--;
if (order->type == OT_GOTO_STATION) {
if (v->type == VEH_Ship && IsBuoy(GetStation(order->dest))) continue;
if (v->type == VEH_Ship && GetStation(order->dest)->IsBuoy()) continue;
SetDParam(0, order->dest);
DrawString(x, y, STR_A036, 0);