Merge branch 'master' into jgrpp-beta
# Conflicts: # src/lang/chuvash.txt # src/lang/czech.txt # src/lang/english_AU.txt # src/lang/english_US.txt # src/lang/german.txt # src/lang/japanese.txt # src/lang/korean.txt # src/lang/latvian.txt # src/lang/russian.txt # src/tree_gui.cpp # src/vehicle.cpp
This commit is contained in:
@@ -1053,11 +1053,20 @@ void Vehicle::HandlePathfindingResult(bool path_found)
|
||||
if (this->type == VEH_SHIP) {
|
||||
Ship::From(this)->lost_count = 0;
|
||||
}
|
||||
|
||||
SetWindowWidgetDirty(WC_VEHICLE_VIEW, this->index, WID_VV_START_STOP);
|
||||
DirtyVehicleListWindowForVehicle(this);
|
||||
|
||||
/* Delete the news item. */
|
||||
DeleteVehicleNews(this->index, STR_NEWS_VEHICLE_IS_LOST);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!HasBit(this->vehicle_flags, VF_PATHFINDER_LOST)) {
|
||||
SetWindowWidgetDirty(WC_VEHICLE_VIEW, this->index, WID_VV_START_STOP);
|
||||
DirtyVehicleListWindowForVehicle(this);
|
||||
}
|
||||
|
||||
if (this->type == VEH_SHIP) {
|
||||
SetBit(this->vehicle_flags, VF_PATHFINDER_LOST);
|
||||
if (Ship::From(this)->lost_count == 255) return;
|
||||
|
Reference in New Issue
Block a user