From c6f697161b8fd4a2dbb05fe0083af6772beb6d01 Mon Sep 17 00:00:00 2001 From: tankefugl Date: Mon, 11 Apr 2005 02:19:49 +0000 Subject: [PATCH] Mantis 0000992: Fixed code typo ... git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@60 67975925-1194-0748-b3d5-c16f83f1a3a1 --- dev/tankefugl/source/mod/AvHHud.cpp | 33 +---------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/dev/tankefugl/source/mod/AvHHud.cpp b/dev/tankefugl/source/mod/AvHHud.cpp index 4f2a72bc..3ceff2fa 100644 --- a/dev/tankefugl/source/mod/AvHHud.cpp +++ b/dev/tankefugl/source/mod/AvHHud.cpp @@ -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