Commits

Anonymous committed 24f9767

Bugfix console control keys... call it 1.1RC2 final

Comments (0)

Files changed (2)

ProduceDefendWin.py

             if event.type == pygame.KEYDOWN:
                 if event.key == K_w and pygame.key.get_mods() & KMOD_CTRL:
                     console.set_active()
-                #elif event.key == K_q and pygame.key.get_mods() & KMOD_CTRL: 
-                elif event.key == K_1 and (pygame.key.get_mods() == 64 or pygame.key.get_mods() == 128): 
+                elif event.key == K_1 and pygame.key.get_mods() & KMOD_CTRL: 
+                #elif event.key == K_1 and (pygame.key.get_mods() == 64 or pygame.key.get_mods() == 128): 
                     # "Just a little hack so you can play with both pyconsole and python"
                     # Hit ctrl w to hide pyconsole, then ctrl 1 to switch modes, then ctrl w again to show the console
                     console.setvar("python_mode", not console.getvar("python_mode"))

Source/pyconsole_functions.py

     enviro.writeCredits(enviro.credits)
     return "added %d credits" % n
 
+# I left this in for grins
 def line(start_pos, end_pos, color=[0,0,0], width=1):
 	'''\
 	Call pygame.draw.line