Mantis 0000992:

Fixed code typo ...

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@60 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
tankefugl 2005-04-11 02:19:49 +00:00
parent ae26e361bd
commit c6f697161b
1 changed files with 1 additions and 32 deletions

View File

@ -2333,7 +2333,7 @@ int AvHHud::IssueOrder(const char* pszName, int iSize, void* pbuf)
if (this->GetInTopDownMode() == false)
{
cl_entity_s* theLocalPlayer = gEngfuncs.GetLocalPlayer();
if (theLocalPlayer->index == ordersource) //ordertarget)
if (theLocalPlayer->index == ordertarget)
{
hud_player_info_t info;
memset(&info, 0, sizeof(info));
@ -2344,33 +2344,6 @@ int AvHHud::IssueOrder(const char* pszName, int iSize, void* pbuf)
// fetch from titles.txt
sprintf(temp, "TeammateOrder%d", ordertype);
LocalizeString(temp.c_str(), nameFormat);
/* switch (ordertype) {
case TEAMMATE_MARINE_ORDER_WELD:
nameFormat = "Weld %s";
break;
case TEAMMATE_MARINE_ORDER_FOLLOW:
nameFormat = "Follow %s";
break;
case TEAMMATE_MARINE_ORDER_COVER:
nameFormat = "%s is covering";
break;
case TEAMMATE_MARINE_ORDER_UNKNOWN:
nameFormat = "%s";
break;
case TEAMMATE_ALIEN_ORDER_HEAL:
nameFormat = "Heal %s";
break;
case TEAMMATE_ALIEN_ORDER_FOLLOW:
nameFormat = "Follow %s";
break;
case TEAMMATE_ALIEN_ORDER_COVER:
nameFormat = "%s is covering";
break;
case TEAMMATE_ALIEN_ORDER_UNKNOWN:
nameFormat = "%s";
break;
}*/
sprintf(temp, nameFormat.c_str(), info.name);
this->SetDisplayOrder(1, ordertype, temp, "", "");
@ -2383,10 +2356,6 @@ int AvHHud::IssueOrder(const char* pszName, int iSize, void* pbuf)
}
}
// char temp[255];
// sprintf(temp, "IssueOrder received - type %d source %d target %d at time %f\n", ordertype, ordersource, ordertarget, now);
// gEngfuncs.Con_Printf(temp);
return 1;
}
// :tankefugl