|
|
|
@ -1855,6 +1855,9 @@ command_result df_zone (color_ostream &out, vector <string> & parameters)
|
|
|
|
|
|
|
|
|
|
// if followed by another parameter, check if it's numeric
|
|
|
|
|
if(i < parameters.size()-1)
|
|
|
|
|
{
|
|
|
|
|
auto & str = parameters[i+1];
|
|
|
|
|
if(str.size() > 0 && str[0] >= '0' && str[0] <= '9')
|
|
|
|
|
{
|
|
|
|
|
stringstream ss(parameters[i+1]);
|
|
|
|
|
int new_building = -1;
|
|
|
|
@ -1866,6 +1869,7 @@ command_result df_zone (color_ostream &out, vector <string> & parameters)
|
|
|
|
|
out << "Assign selected unit(s) to building #" << target_building <<std::endl;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(target_building == -1)
|
|
|
|
|
{
|
|
|
|
|
out.printerr("No building id specified and current one is invalid!\n");
|
|
|
|
|