summaryrefslogtreecommitdiff
path: root/water_cmd.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-12-21 23:27:58 +0000
committerdarkvater <darkvater@openttd.org>2004-12-21 23:27:58 +0000
commit160a0a5ee1b539c71c35e0f4fdc84841a1d3be70 (patch)
treee7f0d0b320fd24814891039231dcd5eab36423f2 /water_cmd.c
parent9a0c994fa89e14d2b77c83f39355b7de301fec1a (diff)
downloadopenttd-160a0a5ee1b539c71c35e0f4fdc84841a1d3be70.tar.xz
(svn r1211) -Feature: Introduce sticky windows to all vehicle windows...Just make sure you do not sticky more than 23 at a time. Also a lot of places in the code invalidated the 'status bar' of the vehicle, referring to it as widget 4. This is now widget 5 and has been #definitized
Diffstat (limited to 'water_cmd.c')
-rw-r--r--water_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/water_cmd.c b/water_cmd.c
index 04d6cc2c5..9201a374f 100644
--- a/water_cmd.c
+++ b/water_cmd.c
@@ -554,7 +554,7 @@ static void FloodVehicle(Vehicle *v)
} else
return;
- InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, 4);
+ InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR);
InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
SetDParam(0, pass);