changeset 937:ae747684f644

stru279 removed.
author Nomad
date Wed, 01 May 2013 12:45:02 +0200
parents 365a9acad64e
children 016e3577865c 530e3d5ab48d
files Game.cpp Party.cpp UIBooks.cpp UICharacter.cpp UIMainMenu.cpp UIOptions.cpp UIPartyCreation.cpp UIPopup.cpp UIRest.cpp UISaveLoad.cpp UiGame.cpp mm7_1.cpp mm7_2.cpp mm7_3.cpp mm7_4.cpp mm7_5.cpp mm7_6.cpp mm7_data.cpp stru279.h texts.cpp
diffstat 20 files changed, 3 insertions(+), 59 deletions(-) [+]
line wrap: on
line diff
--- a/Game.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/Game.cpp	Wed May 01 12:45:02 2013 +0200
@@ -9,7 +9,6 @@
 #include "Time.h"
 #include "Outdoor.h"
 #include "Overlays.h"
-#include "stru279.h"
 #include "AudioPlayer.h"
 #include "LOD.h"
 #include "OSInfo.h"
@@ -229,7 +228,7 @@
 
   GUI_UpdateWindows();
   pParty->UpdatePlayersAndHirelingsEmotions();
-  ++stru_51076C.field_8;
+
   _unused_5B5924_is_travel_ui_drawn = false;
   if (v4)
     pMouse->bRedraw = true;
@@ -767,7 +766,6 @@
     WriteWindowsRegistryInt("window X", Rect.left);
     WriteWindowsRegistryInt("window Y", Rect.top);
   }
-  WriteWindowsRegistryInt("debug flags", stru_51076C.registry_debug_flags);
   WriteWindowsRegistryInt("valAlwaysRun", bAlwaysRun);
   pItemsTable->Release();
   pNPCStats->Release();
--- a/Party.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/Party.cpp	Wed May 01 12:45:02 2013 +0200
@@ -8,7 +8,6 @@
 #include "Mouse.h"
 #include "PlayerFrameTable.h"
 #include "TurnEngine.h"
-#include "stru279.h"
 #include "Viewport.h"
 #include "Actor.h"
 #include "GUIWindow.h"
@@ -917,10 +916,6 @@
   //unsigned int v10; // edi@62
   //signed int v11; // [sp+0h] [bp-4h]@2
 
-  if (dword_A75070 == stru_51076C.field_8) // stru_51076C.field_8 is incremented each time after this function is called, so this is useless
-    return;
-
-  dword_A75070 = stru_51076C.field_8;
   //v1 = this->pPlayers;//(char *)&this->pPlayers[0].uExpressionID;
   for (int i = 0; i < 4; ++i)
   {
--- a/UIBooks.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/UIBooks.cpp	Wed May 01 12:45:02 2013 +0200
@@ -33,7 +33,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "CastSpellInfo.h"
 #include "Weather.h"
--- a/UICharacter.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/UICharacter.cpp	Wed May 01 12:45:02 2013 +0200
@@ -33,7 +33,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "CastSpellInfo.h"
 #include "Weather.h"
--- a/UIMainMenu.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/UIMainMenu.cpp	Wed May 01 12:45:02 2013 +0200
@@ -33,7 +33,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "CastSpellInfo.h"
 #include "Weather.h"
--- a/UIOptions.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/UIOptions.cpp	Wed May 01 12:45:02 2013 +0200
@@ -33,7 +33,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "CastSpellInfo.h"
 #include "Weather.h"
--- a/UIPartyCreation.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/UIPartyCreation.cpp	Wed May 01 12:45:02 2013 +0200
@@ -33,7 +33,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "CastSpellInfo.h"
 #include "Weather.h"
--- a/UIPopup.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/UIPopup.cpp	Wed May 01 12:45:02 2013 +0200
@@ -33,7 +33,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "CastSpellInfo.h"
 #include "Weather.h"
--- a/UIRest.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/UIRest.cpp	Wed May 01 12:45:02 2013 +0200
@@ -33,7 +33,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "CastSpellInfo.h"
 #include "Weather.h"
--- a/UISaveLoad.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/UISaveLoad.cpp	Wed May 01 12:45:02 2013 +0200
@@ -33,7 +33,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "CastSpellInfo.h"
 #include "Weather.h"
--- a/UiGame.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/UiGame.cpp	Wed May 01 12:45:02 2013 +0200
@@ -34,7 +34,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "CastSpellInfo.h"
 #include "Weather.h"
--- a/mm7_1.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/mm7_1.cpp	Wed May 01 12:45:02 2013 +0200
@@ -39,7 +39,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "CastSpellInfo.h"
 #include "Weather.h"
--- a/mm7_2.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/mm7_2.cpp	Wed May 01 12:45:02 2013 +0200
@@ -38,7 +38,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "FactionTable.h"
 #include "StorylineTextTable.h"
@@ -9298,7 +9297,6 @@
     if (wcsstr(pCmdLine, L"-new_sky"))
       new_sky = true;
   }
-  stru_51076C.registry_debug_flags = ReadWindowsRegistryInt("debug flags", 0);
 
 
   /*v8 = _4AC1C9_get_cpu_speed(0, (Vec4_int_ *)a2);
--- a/mm7_3.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/mm7_3.cpp	Wed May 01 12:45:02 2013 +0200
@@ -33,7 +33,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "Weather.h"
 #include "stru220.h"
 #include "Events2D.h"
--- a/mm7_4.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/mm7_4.cpp	Wed May 01 12:45:02 2013 +0200
@@ -38,7 +38,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "FactionTable.h"
 #include "StorylineTextTable.h"
--- a/mm7_5.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/mm7_5.cpp	Wed May 01 12:45:02 2013 +0200
@@ -32,7 +32,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "CastSpellInfo.h"
 #include "Weather.h"
--- a/mm7_6.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/mm7_6.cpp	Wed May 01 12:45:02 2013 +0200
@@ -31,7 +31,6 @@
 #include "Awards.h"
 #include "Autonotes.h"
 #include "stru160.h"
-#include "stru279.h"
 #include "TurnEngine.h"
 #include "CastSpellInfo.h"
 #include "Weather.h"
--- a/mm7_data.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/mm7_data.cpp	Wed May 01 12:45:02 2013 +0200
@@ -43,10 +43,6 @@
 struct ViewingParams *viewparams = new ViewingParams;
 
 
-#include "stru279.h"
-stru279 stru_51076C;
-
-
 int achievedAwardsIndex[1000];
 
 #include "stru123.h"
@@ -2007,7 +2003,6 @@
 struct Texture *pTexture_PlayerFaceEradicated;
 struct Texture *pTexture_PlayerFaceDead;
 struct Texture *pTextures_PlayerFaces[4][56];
-int dword_A75070; // weak
 struct Player *pPlayers[5];
 __int64 qword_A750D8; // weak
 __int16 word_A750E0; // weak
--- a/stru279.h	Wed May 01 12:38:36 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
-#pragma once
-
-
-/*  273 */
-#pragma pack(push, 1)
-struct stru279
-{
-  //----- (0043B506) --------------------------------------------------------
-  stru279()
-  {
-    this->field_4 = 0;
-    this->field_8 = 0;
-    this->field_C = 0;
-    this->field_10 = 0;
-    this->field_14 = 0;
-    this->registry_debug_flags = 0;
-  }
-
-
-  int registry_debug_flags;
-  int field_4;
-  int field_8;
-  int field_C;
-  int field_10;
-  int field_14;
-};
-#pragma pack(pop)
-extern stru279 stru_51076C;
\ No newline at end of file
--- a/texts.cpp	Wed May 01 12:38:36 2013 +0200
+++ b/texts.cpp	Wed May 01 12:45:02 2013 +0200
@@ -31,7 +31,7 @@
 
 //----- (00452B95) --------------------------------------------------------
 void __cdecl SetSomeItemsNames()
-	{
+{
 	pSomeItemsNames[0] = pGlobalTXT_LocalizationStrings[568];
 	pSomeItemsNames[1] = pGlobalTXT_LocalizationStrings[271];
 	pSomeItemsNames[2] = pGlobalTXT_LocalizationStrings[272];
@@ -47,7 +47,7 @@
 	pSomeItemsNames[12] = pGlobalTXT_LocalizationStrings[282];
 	pSomeItemsNames[13] = pGlobalTXT_LocalizationStrings[143];
 	memset(&stru_5E4C50, 0, sizeof(stru_5E4C50));
-	}
+}
 
 //----- (00452C30) --------------------------------------------------------
 char *RemoveQuotes(char *pStr)