git.fiddlerwoaroof.com
Browse code

Keyboard handling glitch fixed

Ed L authored on 01/08/2012 03:49:28
Showing 1 changed files
... ...
@@ -63,9 +63,9 @@ class GameBase:
63 63
 			yield 0
64 64
 
65 65
 			self.render_all()
66
-			libtcod.console_flush()
67 66
 
68 67
 			yield 1
68
+			libtcod.console_flush()
69 69
 
70 70
 			self.handle_keys()
71 71
 
... ...
@@ -140,11 +140,6 @@ class GameBase:
140 140
 
141 141
 
142 142
 	def menu(self, header, options, width, back_color=libtcod.black, fore_color=libtcod.white):
143
-		import debug
144
-		print '------\n'
145
-		print debug._get_last_module(100)
146
-		print 'menu(', self, header, options, width, back_color, fore_color, ')'
147
-		print '------\n'
148 143
 
149 144
 		if self.con is None: self.con = 0
150 145
 		if len(options) > 26: raise ValueError('too many items')