JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
* main.c: wrapped call to autopilot_fix_keystates.
authorJoshua Grams <josh@qualdan.com>
Tue, 8 May 2007 23:39:22 +0000 (23:39 +0000)
committerJoshua Grams <josh@qualdan.com>
Tue, 8 May 2007 23:39:22 +0000 (23:39 +0000)
main.c

diff --git a/main.c b/main.c
index 91556ad..91af524 100644 (file)
--- 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) {