ReturnGoods without depot works in network too.
This commit is contained in:
parent
53c91f39bb
commit
2c67ccb304
1 changed files with 3 additions and 6 deletions
|
@ -686,12 +686,9 @@ void ExecCommand(unsigned char msgnr, UnitRef unum,
|
|||
break;
|
||||
}
|
||||
case MessageCommandReturn: {
|
||||
if (dstnr != (unsigned short)0xFFFF) {
|
||||
CUnit &dest = UnitManager.GetSlotUnit(dstnr);
|
||||
Assert(dest.Type);
|
||||
CommandLog("return", &unit, status, -1, -1, &dest, NULL, -1);
|
||||
CommandReturnGoods(unit, &dest, status);
|
||||
}
|
||||
CUnit *dest = (dstnr != (unsigned short)0xFFFF) ? &UnitManager.GetSlotUnit(dstnr) : NULL;
|
||||
CommandLog("return", &unit, status, -1, -1, dest, NULL, -1);
|
||||
CommandReturnGoods(unit, dest, status);
|
||||
break;
|
||||
}
|
||||
case MessageCommandTrain:
|
||||
|
|
Loading…
Add table
Reference in a new issue