adonthell-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[adonthell-wastesedge-commits] Release_0-3-1 d13c53f 052/237: Speed impr


From: Kai Sterker
Subject: [adonthell-wastesedge-commits] Release_0-3-1 d13c53f 052/237: Speed improvements
Date: Mon, 25 Jul 2016 18:14:56 +0000 (UTC)

tag: Release_0-3-1
commit d13c53f7fab10472cb5927286e34a0ab67ac0200
Author: adondev <adondev>
Commit: adondev <adondev>

    Speed improvements
---
 scripts/schedules/keyboard_control.py |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/scripts/schedules/keyboard_control.py 
b/scripts/schedules/keyboard_control.py
index 2cd8222..05505fa 100755
--- a/scripts/schedules/keyboard_control.py
+++ b/scripts/schedules/keyboard_control.py
@@ -1,6 +1,3 @@
-from main_menu import *
-from console import *
-
 # -- When the menu is closing, react accordingly
 def on_menu_close (retval, player):
     # -- Reactivate the player's schedule
@@ -70,11 +67,9 @@ if input_has_been_pushed (SDLK_SPACE):
 
 # -- bring up the main menu
 elif input_has_been_pushed (SDLK_ESCAPE):
-    # -- deactivate the player's schedule, so he can't move while the menu is 
open
-#    myself.set_schedule_active (0)
+    from main_menu import *
 
     # -- open main menu without animation, with saving and background enabled
-       #print "rt"
     menu = main_menu (1, 1, 1)
     menu.thisown = C
 
@@ -127,6 +122,7 @@ elif input_has_been_pushed (SDLK_s):
 
 # -- python console
 elif input_has_been_pushed (SDLK_TAB):
+    from console import *
     c = console (globals ())
     c.thisown = C
     c.set_activate (1)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]