From 9fff6e8a0b1c82689919967bc9dcaacc5910e8eb Mon Sep 17 00:00:00 2001 From: Timur Gagiev Date: Wed, 14 Mar 2018 13:51:26 +0300 Subject: [PATCH] Update main.cpp #15 fix joyInit call before os timer initialization --- src/platform/nix/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/nix/main.cpp b/src/platform/nix/main.cpp index be7889f..925e54b 100644 --- a/src/platform/nix/main.cpp +++ b/src/platform/nix/main.cpp @@ -401,12 +401,11 @@ int main(int argc, char **argv) { Atom WM_DELETE_WINDOW = XInternAtom(dpy, "WM_DELETE_WINDOW", 0); XSetWMProtocols(dpy, wnd, &WM_DELETE_WINDOW, 1); - joyInit(); - timeval t; gettimeofday(&t, NULL); startTime = t.tv_sec; + joyInit(); sndInit(); Game::init(argc > 1 ? argv[1] : NULL);