From 7b73f331933253577ecdacaf80a865681c7a7a8a Mon Sep 17 00:00:00 2001 From: tankefugl Date: Sun, 17 Apr 2005 20:59:17 +0000 Subject: [PATCH] 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 --- dev/tankefugl/source/mod/AvHPlayer.cpp | 34 ++++++++++++++------------ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/dev/tankefugl/source/mod/AvHPlayer.cpp b/dev/tankefugl/source/mod/AvHPlayer.cpp index 56fb5a1c..152fa3de 100644 --- a/dev/tankefugl/source/mod/AvHPlayer.cpp +++ b/dev/tankefugl/source/mod/AvHPlayer.cpp @@ -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 } } }