changeset 15:e33334611747

Merge
author Nomad
date Sat, 13 Oct 2012 17:10:23 +0200
parents b47e9c80e741 (diff) 17150bdf321e (current diff)
children f810c4366a77 3fa5d0522f92
files
diffstat 1 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/mm7_5.cpp	Fri Oct 12 21:18:16 2012 +0600
+++ b/mm7_5.cpp	Sat Oct 13 17:10:23 2012 +0200
@@ -3455,6 +3455,16 @@
           SetCurrentMenuID(MENU_FINISHED);
         }
         continue;
+
+        case UIMSG_LoadGame:
+        {
+          if (!pSavegameUsedSlots[uLoadGameUI_SelectedSlot])
+            continue;
+LABEL_99:
+          v40 = 9;
+          goto LABEL_89;
+        }
+        continue;
       }
 
 
@@ -3623,14 +3633,6 @@
           v8 = pGUIWindow_CurrentMenu->uFrameY + 323;
           goto LABEL_105;
         }
-        if ( v45 == UIMSG_LoadGame )
-        {
-          if ( !pSavegameUsedSlots[uLoadGameUI_SelectedSlot] )
-            continue;
-LABEL_99:
-          v40 = 9;
-          goto LABEL_89;
-        }
         if ( v45 == 107 )
         {
           if ( uGame_if_0_else_ui_id__11_save__else_load__8_drawSpellInfoPopup__22_final_window__26_keymapOptions__2_options__28_videoOptions )
@@ -14925,7 +14927,7 @@
         v21 = v0->str_48;
         viewparams->bRedrawGameUI = 1;
         if ( v21 && v21 != (char *)1 )
-          ((GUIButton *)v20)->DrawLabel(v21, pFontCreate, 0, 0);
+          v20->DrawLabel(v21, pFontCreate, 0, 0);
         v0->Release();
         if (uGame_if_0_else_ui_id__11_save__else_load__8_drawSpellInfoPopup__22_final_window__26_keymapOptions__2_options__28_videoOptions == 11)
           pMessageQueue_50CBD0->SendMessage(UIMSG_SaveGame, 0, 0);