X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=main.c;h=14a486b962f0317b38ea98b749160451ee7bd7ea;hp=fe864bd8feeb6936907f82ec17b1ad826b51f9ae;hb=c706b99e3d67ab42bc19bc430b649944afbcb8e4;hpb=a9bcdd09afa1b6ea40a7fb09fdd16b60dc932775 diff --git a/main.c b/main.c index fe864bd..14a486b 100644 --- a/main.c +++ b/main.c @@ -638,7 +638,7 @@ gameloop() { autopilot(t_frame); } - while(SDL_PollEvent(&e)) { + while(paused ? SDL_WaitEvent(&e) : SDL_PollEvent(&e)) { switch(e.type) { case SDL_QUIT: return; case SDL_KEYDOWN: