diff GUI/UI/UIHouses.cpp @ 2541:a902abdfc7f2

1. Renamed class Game to class Engine. 2. Separated game logic as state of FSM from game logic as engine. 3. Found out that many UI screen initializers were optimized away, intially they all returned newly created window as separate object like it is done in CharacterUI_Initialize.
author a.parshin
date Sun, 10 May 2015 01:29:11 +0200
parents 1bcadc6dd203
children b6140dfeac27
line wrap: on
line diff
--- a/GUI/UI/UIHouses.cpp	Sat May 09 12:55:58 2015 +0200
+++ b/GUI/UI/UIHouses.cpp	Sun May 10 01:29:11 2015 +0200
@@ -3,14 +3,15 @@
 #include <crtdbg.h>
 
 #define _CRT_SECURE_NO_WARNINGS
+
+#include "Engine/Engine.h"
+
 #include "UIGuilds.h"
 #include "UIPartyCreation.h"
 #include "UIShops.h"
 #include "..\../GUI/GUIButton.h"
 #include "..\../Engine/SaveLoad.h"
 #include "..\../Engine/Graphics/Texture.h"
-#include "..\../Engine/mm7_data.h"
-#include "..\../Engine/ErrorHandling.h"
 #include "UIHouses.h"
 #include "..\../Engine/Party.h"
 #include "..\../Engine/texts.h"
@@ -28,8 +29,6 @@
 #include "..\../Engine/Graphics/Viewport.h"
 #include "..\../IO/Keyboard.h"
 #include "..\../Engine/MapInfo.h"
-#include "..\../Engine/Log.h"
-#include "..\../Engine/Game.h"
 #include "..\../Engine/Spells/CastSpellInfo.h"
 
 #include "../../Engine/Graphics/Level/Decoration.h"
@@ -1564,7 +1563,7 @@
         }
         else
         {
-          pGame->pIndoorCameraD3D->sRotationY = 0;
+          pEngine->pIndoorCameraD3D->sRotationY = 0;
 
           pParty->uFlags |= 2u;
           pParty->vPosition.x = pTravel->arrival_x;