Merge branch 'SQC-15_online' into PauseMenuFieldsAndOnline

This commit is contained in:
MarcEricMartel 2023-12-12 09:31:01 -05:00
commit 7a30e43001
3 changed files with 5 additions and 4 deletions

View File

@ -196,7 +196,7 @@
<FloatingPointModel>Fast</FloatingPointModel> <FloatingPointModel>Fast</FloatingPointModel>
</ClCompile> </ClCompile>
<Link> <Link>
<SubSystem>Console</SubSystem> <SubSystem>Windows</SubSystem>
<GenerateDebugInformation>false</GenerateDebugInformation> <GenerateDebugInformation>false</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding> <EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences> <OptimizeReferences>true</OptimizeReferences>

View File

@ -1595,8 +1595,9 @@ void Engine::Render(float elapsedTime) {
m_countdown = m_time + COUNTDOWN; m_countdown = m_time + COUNTDOWN;
m_resetcountdown = false; m_resetcountdown = false;
} }
if (!m_stopcountdown) if (!m_stopcountdown) {
m_countdown -= (int)m_time; m_countdown = COUNTDOWN - (int)m_time;
}
} }
DrawHud(elapsedTime, bloc); DrawHud(elapsedTime, bloc);

View File

@ -5,5 +5,5 @@
int main() { int main() {
Engine engine; Engine engine;
engine.SetMaxFps(60); engine.SetMaxFps(60);
engine.Start("Syndicat Quebecois de la Construction Simulator 2023", BASE_WIDTH, BASE_HEIGHT, false); engine.Start("Syndicat Quebecois de la Construction Simulator 2023", 1920, 1080, false);
} }