diff UI/UiGame.cpp @ 2198:d9caf2b3d8d5

draw FlyAction and WaterWalk icons
author Ritor1
date Sun, 02 Feb 2014 00:10:40 +0600
parents 9856c2f8f918
children 4bfee77e900d c2eeeb991a87
line wrap: on
line diff
--- a/UI/UiGame.cpp	Fri Jan 31 17:30:36 2014 +0600
+++ b/UI/UiGame.cpp	Sun Feb 02 00:10:40 2014 +0600
@@ -1636,8 +1636,8 @@
 void GameUI_DrawPartySpells()
 {
   unsigned int v0; // ebp@1
-  Texture *v7; // [sp-4h] [bp-1Ch]@12
-  Texture *v9; // [sp-4h] [bp-1Ch]@21
+  Texture *spell_texture; // [sp-4h] [bp-1Ch]@12
+  //Texture *v9; // [sp-4h] [bp-1Ch]@21
 
   v0 = (signed __int64)((double)GetTickCount() * 0.050000001);
   //v1 = 0;
@@ -1660,22 +1660,22 @@
     if (pParty->FlyActive())
     {
       if ( pParty->bFlying )
-        v7 = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_FlySpell, v0)->uTextureID);
+        spell_texture = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_FlySpell, v0)->uTextureID);
       else
-        v7 = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_FlySpell, 0)->uTextureID);
+        spell_texture = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_FlySpell, 0)->uTextureID);
       //if ( pRenderer->pRenderD3D )
-        pRenderer->DrawTextureIndexed(8, 8, v7);
+        pRenderer->DrawTextureIndexed(8, 8, spell_texture);
       /*else
         pRenderer->DrawTextureTransparent(8, 8, v7);*/
     }
     if ( pParty->WaterWalkActive() )
     {
       if ( pParty->uFlags & PARTY_FLAGS_1_STANDING_ON_WATER )
-        v9 = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_WaterWalk, v0)->uTextureID);
+        spell_texture = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_WaterWalk, v0)->uTextureID);
       else
-        v9 = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_WaterWalk, 0)->uTextureID);
+        spell_texture = pIcons_LOD->GetTexture(pIconsFrameTable->GetFrame(uIconIdx_WaterWalk, 0)->uTextureID);
       //if ( pRenderer->pRenderD3D )
-        pRenderer->DrawTextureIndexed(396, 8, v9);
+        pRenderer->DrawTextureIndexed(396, 8, spell_texture);
       /*else
         pRenderer->DrawTextureTransparent(396, 8, v9);*/
     }