Merge branch 'master' into jgrpp
# Conflicts: # src/debug.cpp # src/saveload/afterload.cpp # src/saveload/saveload.cpp # src/settings_type.h # src/town_cmd.cpp # src/window.cpp
This commit is contained in:
@@ -1041,8 +1041,8 @@ struct RefitWindow : public Window {
|
||||
Vehicle *v = Vehicle::Get(this->window_number);
|
||||
this->selected_vehicle = v->index;
|
||||
this->num_vehicles = UINT8_MAX;
|
||||
FALLTHROUGH;
|
||||
}
|
||||
FALLTHROUGH;
|
||||
|
||||
case 2: { // The vehicle selection has changed; rebuild the entire list.
|
||||
if (!gui_scope) break;
|
||||
@@ -1067,8 +1067,8 @@ struct RefitWindow : public Window {
|
||||
this->information_width = max_width;
|
||||
this->ReInit();
|
||||
}
|
||||
FALLTHROUGH;
|
||||
}
|
||||
FALLTHROUGH;
|
||||
|
||||
case 1: // A new cargo has been selected.
|
||||
if (!gui_scope) break;
|
||||
@@ -1129,8 +1129,8 @@ struct RefitWindow : public Window {
|
||||
if (_ctrl_pressed) this->num_vehicles = UINT8_MAX;
|
||||
break;
|
||||
}
|
||||
FALLTHROUGH;
|
||||
}
|
||||
FALLTHROUGH;
|
||||
|
||||
default:
|
||||
/* Clear the selection. */
|
||||
@@ -1164,8 +1164,8 @@ struct RefitWindow : public Window {
|
||||
this->InvalidateData(1);
|
||||
|
||||
if (click_count == 1) break;
|
||||
FALLTHROUGH;
|
||||
}
|
||||
FALLTHROUGH;
|
||||
|
||||
case WID_VR_REFIT: // refit button
|
||||
if (this->cargo != NULL) {
|
||||
@@ -2886,7 +2886,7 @@ static const uint32 _vehicle_command_translation_table[][4] = {
|
||||
CMD_REVERSE_TRAIN_DIRECTION | CMD_MSG(STR_ERROR_CAN_T_REVERSE_DIRECTION_TRAIN),
|
||||
CMD_TURN_ROADVEH | CMD_MSG(STR_ERROR_CAN_T_MAKE_ROAD_VEHICLE_TURN),
|
||||
0xffffffff, // invalid for ships
|
||||
0xffffffff // invalid for aircrafts
|
||||
0xffffffff // invalid for aircraft
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user