diff UI/UiGame.cpp @ 1827:0c75c3e7e436

cleaned up part of party.cpp, renamed byte_AE3368 to playerAlreadyPicked + 3 vars after it, moved them to party.cpp, some player.cpp bugfixes
author Grumpy7
date Fri, 11 Oct 2013 05:49:39 +0200
parents bdac32c645c5
children 35c1e4ff6ba7
line wrap: on
line diff
--- a/UI/UiGame.cpp	Wed Oct 09 09:08:15 2013 +0200
+++ b/UI/UiGame.cpp	Fri Oct 11 05:49:39 2013 +0200
@@ -932,9 +932,9 @@
     pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, pX, pY, 0, pText, 84, 0);
   }
 
-  if ( GetPartyReputation() >= 0 )
+  if ( pParty->GetPartyReputation() >= 0 )
   {
-    if ( GetPartyReputation() <= 5 )
+    if ( pParty->GetPartyReputation() <= 5 )
       pTextColor = ui_character_default_text_color;
     else
       pTextColor = ui_character_bonus_text_color_neg;
@@ -942,7 +942,7 @@
   else
     pTextColor = ui_character_bonus_text_color;
 
-  sprintf(pTmpBuf.data(), "%s: \f%05d%s\f00000", pGlobalTXT_LocalizationStrings[180], pTextColor, GetReputationString(GetPartyReputation()));//Reputation
+  sprintf(pTmpBuf.data(), "%s: \f%05d%s\f00000", pGlobalTXT_LocalizationStrings[180], pTextColor, GetReputationString(pParty->GetPartyReputation()));//Reputation
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 22, 323, 0, pTmpBuf.data(), 0, 0, 0);
   sprintf(pTmpBuf.data(), "\r261%s: %d", pGlobalTXT_LocalizationStrings[84], pParty->GetPartyFame());// Fame Слава
   pGUIWindow_CurrentMenu->DrawText(pFontArrus, 0, 323, 0, pTmpBuf.data(), 0, 0, 0);