src/water_cmd.cpp
changeset 8763 81fadd257f67
parent 8684 80dc71578def
child 8785 871586967963
equal deleted inserted replaced
8762:bbe195577e21 8763:81fadd257f67
    11 #include "tile_cmd.h"
    11 #include "tile_cmd.h"
    12 #include "landscape.h"
    12 #include "landscape.h"
    13 #include "viewport_func.h"
    13 #include "viewport_func.h"
    14 #include "command_func.h"
    14 #include "command_func.h"
    15 #include "town.h"
    15 #include "town.h"
    16 #include "news.h"
    16 #include "news_func.h"
    17 #include "depot.h"
    17 #include "depot.h"
    18 #include "vehicle_gui.h"
    18 #include "vehicle_gui.h"
    19 #include "train.h"
    19 #include "train.h"
    20 #include "roadveh.h"
    20 #include "roadveh.h"
    21 #include "water.h"
    21 #include "water.h"
   853 		InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);
   853 		InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);
   854 		InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
   854 		InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
   855 
   855 
   856 		SetDParam(0, pass);
   856 		SetDParam(0, pass);
   857 		AddNewsItem(STR_B006_FLOOD_VEHICLE_DESTROYED,
   857 		AddNewsItem(STR_B006_FLOOD_VEHICLE_DESTROYED,
   858 			NEWS_FLAGS(NM_THIN, NF_VIEWPORT | NF_VEHICLE, NT_ACCIDENT, 0),
   858 			NM_THIN, NF_VIEWPORT | NF_VEHICLE, NT_ACCIDENT, DNC_NONE,
   859 			v->index,
   859 			v->index,
   860 			0);
   860 			0);
   861 		CreateEffectVehicleRel(v, 4, 4, 8, EV_EXPLOSION_LARGE);
   861 		CreateEffectVehicleRel(v, 4, 4, 8, EV_EXPLOSION_LARGE);
   862 		SndPlayVehicleFx(SND_12_EXPLOSION, v);
   862 		SndPlayVehicleFx(SND_12_EXPLOSION, v);
   863 	}
   863 	}