summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-12-21 20:49:15 +0000
committerrubidium <rubidium@openttd.org>2014-12-21 20:49:15 +0000
commit33970ddeedb8af0fe101b4b2889478e2bfe5d286 (patch)
tree619f3c3c2053fa654b6d79db87ea40c2bf9d8702
parent107bf32953f3261a0d7c02fa9113afeb94b68219 (diff)
downloadopenttd-33970ddeedb8af0fe101b4b2889478e2bfe5d286.tar.xz
(svn r27087) -Fix (r26864): the shadow bit of disaster vehicles got cleared after being set to show a shadow
-rw-r--r--src/disaster_vehicle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/disaster_vehicle.cpp b/src/disaster_vehicle.cpp
index 90c016fca..d75e2d460 100644
--- a/src/disaster_vehicle.cpp
+++ b/src/disaster_vehicle.cpp
@@ -126,6 +126,8 @@ void DisasterVehicle::UpdateImage()
DisasterVehicle::DisasterVehicle(int x, int y, Direction direction, DisasterSubType subtype, VehicleID big_ufo_destroyer_target) :
SpecializedVehicleBase(), big_ufo_destroyer_target(big_ufo_destroyer_target)
{
+ this->vehstatus = VS_UNCLICKABLE;
+
this->x_pos = x;
this->y_pos = y;
switch (subtype) {
@@ -164,7 +166,6 @@ DisasterVehicle::DisasterVehicle(int x, int y, Direction direction, DisasterSubT
this->subtype = subtype;
this->UpdateDeltaXY(INVALID_DIR);
this->owner = OWNER_NONE;
- this->vehstatus = VS_UNCLICKABLE;
this->image_override = 0;
this->current_order.Free();