cool update

add option for auto restart, fix some bugs with auto restart, fix a crash with having no playlist set, fix double pleasant and hlod buildings on 7.30, fix 6.21 hlod buildings, performance
This commit is contained in:
Milxnor
2023-05-01 23:52:41 -04:00
parent f4c12fd7f5
commit 3b0f0ad4e1
7 changed files with 140 additions and 80 deletions

View File

@@ -58,7 +58,7 @@
static inline int SecondsUntilTravel = 5;
static inline bool bSwitchedInitialLevel = false;
static inline bool bIsInAutoRestart = false;
extern inline bool bIsInAutoRestart = false;
// THE BASE CODE IS FROM IMGUI GITHUB
@@ -72,7 +72,7 @@ static inline void CleanupDeviceD3D();
static inline void ResetDevice();
static inline LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
static inline bool bStartedBus = false;
extern inline bool bStartedBus = false;
static inline void Restart() // todo move?
{
@@ -263,7 +263,7 @@ static inline void StaticUI()
{
if (IsRestartingSupported())
{
// ImGui::Checkbox("Auto Restart", &Globals::bAutoRestart);
ImGui::Checkbox("Auto Restart", &Globals::bAutoRestart);
}
#ifndef PROD