diff UI/Books/UISpellBook.cpp @ 1455:bfe342ae0c1f

DrawPaperdoll cleaning
author Ritor1
date Fri, 09 Aug 2013 17:30:33 +0600
parents 6b1c8c41c83f
children ff2118028c71
line wrap: on
line diff
--- a/UI/Books/UISpellBook.cpp	Thu Aug 08 16:34:37 2013 +0600
+++ b/UI/Books/UISpellBook.cpp	Fri Aug 09 17:30:33 2013 +0600
@@ -3,7 +3,6 @@
 #endif
 
 #include <assert.h>
-
 #include "..\..\MM7.h"
 #include "..\..\Render.h"
 #include "..\..\Mouse.h"
@@ -16,10 +15,8 @@
 #include "..\..\Allocator.h"
 #include "..\..\Viewport.h"
 #include "..\..\texts.h"
-//
 #include "..\..\mm7_data.h"
 
-
 std::array<char *, 9> spellbook_texture_filename_suffices = {{"f", "a", "w", "e", "s", "m", "b", "l", "d"}}; // weak
 
 //----- (00411300) --------------------------------------------------------
@@ -66,12 +63,10 @@
 //----- (00412AF9) --------------------------------------------------------
 static void BookUI_Spellbook_DrawCurrentSchoolBackground()
 {
-  int v0; // ecx@1
-
-  v0 = 0;
+  int pTexID = 0;
   if ( uActiveCharacter )
-    v0 = pParty->pPlayers[uActiveCharacter - 1].lastOpenedSpellbookPage;//*((char *)&pParty->pPartyBuffs[5].uExpireTime + 6972 * uActiveCharacter + 2);
-  pRenderer->DrawTextureIndexed(8, 8, pSpellBookPagesTextr[v0]);
+    pTexID = pParty->pPlayers[uActiveCharacter - 1].lastOpenedSpellbookPage;
+  pRenderer->DrawTextureIndexed(8, 8, pSpellBookPagesTextr[pTexID]);
   pRenderer->DrawTextureIndexed(476, 450, pSBQuickSpellBtnTextr);
   pRenderer->DrawTextureIndexed(561, 450, pSpellBookCloseBtnTextr);
 }