Skip to content

Commit

Permalink
Initialize timing variables before any user events (#1356)
Browse files Browse the repository at this point in the history
This way they are accurate to use in create/game start/room start events.
  • Loading branch information
RobertBColton authored and JoshDreamland committed Nov 10, 2018
1 parent c4378ec commit 1f989d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ENIGMAsystem/SHELL/Platforms/General/PFmain.cpp
Expand Up @@ -61,13 +61,13 @@ int enigma_main(int argc, char** argv) {
return -4;
}

initTimer();
initInput();

EnableDrawing(nullptr);

// Call ENIGMA system initializers; sprites, audio, and what have you
initialize_everything();
initTimer();
showWindow();

while (!game_isending) {
Expand Down

0 comments on commit 1f989d2

Please sign in to comment.