Build and refit vehicle test no longer needs to match exec command.

This commit is contained in:
Jonathan G Rennison
2017-02-13 18:45:40 +00:00
parent 4550ac39b9
commit fba4268127
4 changed files with 13 additions and 0 deletions

View File

@@ -1352,6 +1352,9 @@ struct BuildVehicleWindow : Window {
char text_buffer[2];
text_buffer[0] = 'R';
text_buffer[1] = this->cargo_filter[this->cargo_filter_criteria];
if ((cmd & 0xFFFF) == CMD_BUILD_VEHICLE) {
cmd = (cmd & ~0xFFFF) | CMD_BUILD_VEHICLE_NT;
}
DoCommandP(this->window_number, sel_eng, 0, cmd, callback, text_buffer, true, 2);
} else {
/* build only */