forked from github/server
giving command to empty units is a mistake.
This commit is contained in:
parent
c421cf0677
commit
e0d70b096a
|
@ -654,7 +654,7 @@ give_control_cmd(unit * u, order * ord)
|
||||||
if (p == P_CONTROL) {
|
if (p == P_CONTROL) {
|
||||||
message * msg;
|
message * msg;
|
||||||
|
|
||||||
if (!u2) {
|
if (!u2 || u2->number==0) {
|
||||||
ADDMSG(&u->faction->msgs, msg_feedback(u, ord, "feedback_unit_not_found", ""));
|
ADDMSG(&u->faction->msgs, msg_feedback(u, ord, "feedback_unit_not_found", ""));
|
||||||
}
|
}
|
||||||
else if (!u->building && !u->ship) {
|
else if (!u->building && !u->ship) {
|
||||||
|
|
Loading…
Reference in New Issue