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:
tankefugl 2005-04-17 20:59:17 +00:00
parent 000a0cd73e
commit 7b73f33193
1 changed files with 18 additions and 16 deletions

View File

@ -4217,22 +4217,24 @@ void AvHPlayer::HandleTopDownInput()
// puzl
this->BuildTech(theMessageID, this->mAttackOnePressedWorldPos);
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)
if(AvHSHUGetIsBuilding(theMessageID))
{
if(this->mSelected.size() > 0)
{
int theFirstEntitySelected = *this->mSelected.begin();
if((theFirstEntitySelected >= 1) && (theFirstEntitySelected <= gpGlobals->maxClients))
{
if(!this->GiveOrderToSelection(ORDERTYPEL_DEFAULT, this->mAttackOnePressedWorldPos))
{
this->SendMessage(kInvalidOrderGiven, true);
}
}
}
}
// tankefugl: 0001014
// // 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)
// {
// int theFirstEntitySelected = *this->mSelected.begin();
// if((theFirstEntitySelected >= 1) && (theFirstEntitySelected <= gpGlobals->maxClients))
// {
// if(!this->GiveOrderToSelection(ORDERTYPEL_DEFAULT, this->mAttackOnePressedWorldPos))
// {
// this->SendMessage(kInvalidOrderGiven, true);
// }
// }
// }
// }
// :tankefugl
}
}
}