Removed bad DebugCheck, cleanup
This commit is contained in:
parent
e6a2c7b92d
commit
b5fe44c91b
3 changed files with 4 additions and 6 deletions
|
@ -83,7 +83,7 @@ global void HandleActionTrain(Unit* unit)
|
|||
//
|
||||
// Check if there are still unit slots.
|
||||
//
|
||||
if (NumUnits >= UnitMax ) {
|
||||
if (NumUnits >= UnitMax) {
|
||||
unit->Data.Train.Ticks =
|
||||
unit->Data.Train.What[0]->Stats[player->Player].Costs[TimeCost];
|
||||
unit->Reset = 1;
|
||||
|
@ -107,7 +107,7 @@ global void HandleActionTrain(Unit* unit)
|
|||
return;
|
||||
}
|
||||
|
||||
nunit=MakeUnit(unit->Data.Train.What[0], player);
|
||||
nunit = MakeUnit(unit->Data.Train.What[0], player);
|
||||
nunit->X = unit->X;
|
||||
nunit->Y = unit->Y;
|
||||
type = unit->Type;
|
||||
|
|
|
@ -878,8 +878,6 @@ global void CommandTrainUnit(Unit* unit, UnitType* type,
|
|||
// Not already training?
|
||||
//
|
||||
if (unit->Orders[0].Action != UnitActionTrain) {
|
||||
DebugCheck(unit->Wait > 6);
|
||||
|
||||
if (unit->OrderCount == 2 && unit->Orders[1].Action == UnitActionTrain) {
|
||||
DebugLevel0Fn("FIXME: not supported. Unit queue full!\n");
|
||||
return;
|
||||
|
@ -965,7 +963,7 @@ global void CommandCancelTraining(Unit* unit, int slot, const UnitType* type)
|
|||
}
|
||||
if (!slot) { // Canceled in work slot
|
||||
unit->Data.Train.Ticks = 0;
|
||||
unit->Wait = unit->Reset = 1; // immediately start next training
|
||||
unit->Wait = unit->Reset = 1; // immediately start next training
|
||||
}
|
||||
unit->Data.Train.Count = n;
|
||||
} else {
|
||||
|
|
|
@ -3280,7 +3280,7 @@ local void MultiPlayerInternetGame(void)
|
|||
MetaServerInUse = 0;
|
||||
MetaServerConnectError();
|
||||
return;
|
||||
}
|
||||
}
|
||||
MetaServerInUse = 1;
|
||||
ProcessMenu("menu-internet-create-join-menu", 1);
|
||||
if (GuiGameStarted) {
|
||||
|
|
Loading…
Add table
Reference in a new issue