stability improvements, fixes

This commit is contained in:
turanszkij
2020-03-07 16:18:23 +00:00
parent 4318b000e1
commit d95dfa7ef2
81 changed files with 963 additions and 1180 deletions
+1 -5
View File
@@ -9,10 +9,6 @@ ForceFieldWindow::ForceFieldWindow(wiGUI* gui) : GUI(gui)
{
assert(GUI && "Invalid GUI!");
float screenW = (float)wiRenderer::GetDevice()->GetScreenWidth();
float screenH = (float)wiRenderer::GetDevice()->GetScreenHeight();
forceFieldWindow = new wiWindow(GUI, "Force Field Window");
forceFieldWindow->SetSize(XMFLOAT2(600, 300));
GUI->AddWidget(forceFieldWindow);
@@ -111,7 +107,7 @@ ForceFieldWindow::ForceFieldWindow(wiGUI* gui) : GUI(gui)
forceFieldWindow->Translate(XMFLOAT3(screenW - 720, 50, 0));
forceFieldWindow->Translate(XMFLOAT3(gui->GetSize().x - 720, 50, 0));
forceFieldWindow->SetVisible(false);
SetEntity(INVALID_ENTITY);