(svn r27087) -Fix (r26864): the shadow bit of disaster vehicles got cleared after being set to show a shadow
This commit is contained in:
@@ -126,6 +126,8 @@ void DisasterVehicle::UpdateImage()
|
|||||||
DisasterVehicle::DisasterVehicle(int x, int y, Direction direction, DisasterSubType subtype, VehicleID big_ufo_destroyer_target) :
|
DisasterVehicle::DisasterVehicle(int x, int y, Direction direction, DisasterSubType subtype, VehicleID big_ufo_destroyer_target) :
|
||||||
SpecializedVehicleBase(), big_ufo_destroyer_target(big_ufo_destroyer_target)
|
SpecializedVehicleBase(), big_ufo_destroyer_target(big_ufo_destroyer_target)
|
||||||
{
|
{
|
||||||
|
this->vehstatus = VS_UNCLICKABLE;
|
||||||
|
|
||||||
this->x_pos = x;
|
this->x_pos = x;
|
||||||
this->y_pos = y;
|
this->y_pos = y;
|
||||||
switch (subtype) {
|
switch (subtype) {
|
||||||
@@ -164,7 +166,6 @@ DisasterVehicle::DisasterVehicle(int x, int y, Direction direction, DisasterSubT
|
|||||||
this->subtype = subtype;
|
this->subtype = subtype;
|
||||||
this->UpdateDeltaXY(INVALID_DIR);
|
this->UpdateDeltaXY(INVALID_DIR);
|
||||||
this->owner = OWNER_NONE;
|
this->owner = OWNER_NONE;
|
||||||
this->vehstatus = VS_UNCLICKABLE;
|
|
||||||
this->image_override = 0;
|
this->image_override = 0;
|
||||||
this->current_order.Free();
|
this->current_order.Free();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user