Corrections timer

This commit is contained in:
MarcEricMartel 2023-12-11 07:31:20 -05:00
parent 7c1f70646a
commit 7498076d7a
3 changed files with 5 additions and 4 deletions

View File

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

View File

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

View File

@ -5,5 +5,5 @@
int main() {
Engine engine;
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);
}