From: Joshua Grams Date: Tue, 8 May 2007 23:39:22 +0000 (+0000) Subject: * main.c: wrapped call to autopilot_fix_keystates. X-Git-Tag: 0.5.3~2 X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=commitdiff_plain;h=fd76673983c406545f8fe1c89a9202760f30e4e9 * main.c: wrapped call to autopilot_fix_keystates. --- diff --git a/main.c b/main.c index 91556ad..91af524 100644 --- a/main.c +++ b/main.c @@ -659,7 +659,9 @@ gameloop() { } } keystate = SDL_GetKeyState(NULL); - autopilot_fix_keystates(keystate); + if(opt_autopilot) { + autopilot_fix_keystates(keystate); + } if(state == GAMEPLAY) { if(!paused) {