Mercurial > mm7
comparison UI/UIBooks.cpp @ 1583:75fafd8ced59
Allocator (CMemory) bye-bye
author | Nomad |
---|---|
date | Tue, 10 Sep 2013 21:07:07 +0200 |
parents | c4ab816fcc5e |
children | d28d3c006077 |
comparison
equal
deleted
inserted
replaced
1577:1b6217e07b26 | 1583:75fafd8ced59 |
---|---|
7 #include "..\Render.h" | 7 #include "..\Render.h" |
8 #include "..\GUIWindow.h" | 8 #include "..\GUIWindow.h" |
9 #include "..\GUIFont.h" | 9 #include "..\GUIFont.h" |
10 #include "..\AudioPlayer.h" | 10 #include "..\AudioPlayer.h" |
11 #include "..\LOD.h" | 11 #include "..\LOD.h" |
12 #include "..\Allocator.h" | 12 |
13 #include "..\mm7_data.h" | 13 #include "..\mm7_data.h" |
14 | 14 |
15 //----- (00413CC6) -------------------------------------------------------- | 15 //----- (00413CC6) -------------------------------------------------------- |
16 void BookUI_Draw(WindowType book) | 16 void BookUI_Draw(WindowType book) |
17 { | 17 { |
88 if ( pGUIWindow_CurrentMenu->pControlsHead ) | 88 if ( pGUIWindow_CurrentMenu->pControlsHead ) |
89 { | 89 { |
90 do | 90 do |
91 { | 91 { |
92 pNextButton = pGUIWindow_CurrentMenu->pControlsHead->pNext; | 92 pNextButton = pGUIWindow_CurrentMenu->pControlsHead->pNext; |
93 pAllocator->FreeChunk(pGUIWindow_CurrentMenu->pControlsHead); | 93 free(pGUIWindow_CurrentMenu->pControlsHead); |
94 pGUIWindow_CurrentMenu->pControlsHead = pNextButton; | 94 pGUIWindow_CurrentMenu->pControlsHead = pNextButton; |
95 } | 95 } |
96 while ( pNextButton ); | 96 while ( pNextButton ); |
97 } | 97 } |
98 pGUIWindow_CurrentMenu->pControlsHead = 0; | 98 pGUIWindow_CurrentMenu->pControlsHead = 0; |