1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-18 02:41:29 +02:00

Update main.cpp

#15 fix joyInit call before os timer initialization
This commit is contained in:
Timur Gagiev
2018-03-14 13:51:26 +03:00
committed by GitHub
parent d40f451b09
commit 9fff6e8a0b

View File

@@ -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);