mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-26 14:30:56 +00:00
Mantis 0001014:
o Placing a structure does not automatically give selected marines a waypoint to it git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@81 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
000a0cd73e
commit
7b73f33193
1 changed files with 18 additions and 16 deletions
|
@ -4218,21 +4218,23 @@ void AvHPlayer::HandleTopDownInput()
|
||||||
this->BuildTech(theMessageID, this->mAttackOnePressedWorldPos);
|
this->BuildTech(theMessageID, this->mAttackOnePressedWorldPos);
|
||||||
this->mTimeOfLastSignificantCommanderAction = gpGlobals->time;
|
this->mTimeOfLastSignificantCommanderAction = gpGlobals->time;
|
||||||
|
|
||||||
// If player(s) selected when something built, give default order to it (assumes that players can't be selected along with other non-players)
|
// tankefugl: 0001014
|
||||||
if(AvHSHUGetIsBuilding(theMessageID))
|
// // If player(s) selected when something built, give default order to it (assumes that players can't be selected along with other non-players)
|
||||||
{
|
// if(AvHSHUGetIsBuilding(theMessageID))
|
||||||
if(this->mSelected.size() > 0)
|
// {
|
||||||
{
|
// if(this->mSelected.size() > 0)
|
||||||
int theFirstEntitySelected = *this->mSelected.begin();
|
// {
|
||||||
if((theFirstEntitySelected >= 1) && (theFirstEntitySelected <= gpGlobals->maxClients))
|
// int theFirstEntitySelected = *this->mSelected.begin();
|
||||||
{
|
// if((theFirstEntitySelected >= 1) && (theFirstEntitySelected <= gpGlobals->maxClients))
|
||||||
if(!this->GiveOrderToSelection(ORDERTYPEL_DEFAULT, this->mAttackOnePressedWorldPos))
|
// {
|
||||||
{
|
// if(!this->GiveOrderToSelection(ORDERTYPEL_DEFAULT, this->mAttackOnePressedWorldPos))
|
||||||
this->SendMessage(kInvalidOrderGiven, true);
|
// {
|
||||||
}
|
// this->SendMessage(kInvalidOrderGiven, true);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
|
// :tankefugl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue