diff GUIProgressBar.cpp @ 434:137c59c3dbc4

Temple of Moon and Dragon Lair can now be entered.
author Nomad
date Sun, 24 Feb 2013 01:42:35 +0200
parents edd2d8b7e3c4
children af08fc9e29c8
line wrap: on
line diff
--- a/GUIProgressBar.cpp	Sun Feb 24 01:08:02 2013 +0200
+++ b/GUIProgressBar.cpp	Sun Feb 24 01:42:35 2013 +0200
@@ -17,8 +17,8 @@
 
 
 
-//----- (00443484) --------------------------------------------------------
-bool GUIProgressBar::_443484(Type type)
+//----- (00Initialize) --------------------------------------------------------
+bool GUIProgressBar::Initialize(Type type)
 {
   //GUIProgressBar *v2; // esi@1
   signed int v4; // eax@7
@@ -29,10 +29,17 @@
   //unsigned int v9; // [sp-4h] [bp-80h]@20
   char Str1[64]; // [sp+4h] [bp-78h]@16
 
-  if (type < 1 || type > 1)
+  switch (type)
   {
-    __debugbreak();
-    return false;
+    case TYPE_None:
+      return true;
+
+    case TYPE_Box:
+    case TYPE_Fullscreen:
+      break;
+
+    default:
+      assert(false && "Invalid GUIProgressBar type");
   }
 
   //v2 = this;