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

View file

@ -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
} }
} }
} }