diff options
author | rubidium <rubidium@openttd.org> | 2007-08-29 21:49:08 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-29 21:49:08 +0000 |
commit | a407d53d1b2a329a5ae747ea83d4652427cc6c8a (patch) | |
tree | eb86df4a79dffa6270deda722c234ab9cb3c8964 /src/group_gui.cpp | |
parent | a28d33b5dc89e47ae271b5dbdcc4f5e6f1784c6c (diff) | |
download | openttd-a407d53d1b2a329a5ae747ea83d4652427cc6c8a.tar.xz |
(svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot.
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 97830ba42..7b994af9d 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -458,7 +458,7 @@ static void GroupWndProc(Window *w, WindowEvent *e) DrawVehicleProfitButton(v, x, y2 + 13); SetDParam(0, v->unitnumber); - DrawString(x, y2 + 2, IsVehicleInDepot(v) ? STR_021F : (v->age > v->max_age - 366 ? STR_00E3 : STR_00E2), 0); + DrawString(x, y2 + 2, v->IsInDepot() ? STR_021F : (v->age > v->max_age - 366 ? STR_00E3 : STR_00E2), 0); if (w->resize.step_height == PLY_WND_PRC__SIZE_OF_ROW_BIG2) DrawSmallOrderList(v, x + 138, y2); |