fix NICv2 bug

This commit is contained in:
Junzi Sun 2018-07-04 18:14:13 +02:00
parent ea1ccc0c70
commit ef9d2cfd16
2 changed files with 4 additions and 7 deletions

View File

@ -103,7 +103,7 @@ NICv2 = {
8: {0: {'Rc': 185}},
7: {
0: {'Rc': 370},
2: {'Rc': 370},
3: {'Rc': 370},
},
6: {
0: {'Rc': 926},
@ -113,7 +113,7 @@ NICv2 = {
},
5: {0: {'Rc': 1852}},
4: {0: {'Rc': 3702}},
3: {2: {'Rc': 7408}},
3: {3: {'Rc': 7408}},
2: {0: {'Rc': 14008}},
1: {0: {'Rc': 37000}},
0: {0: {'Rc': NA}},

View File

@ -55,7 +55,7 @@ class Screen(Thread):
def draw_frame(self):
self.screen.border(0)
self.screen.addstr(0, 2, "Online aircraft ('ESC' to exit, 'Enter' to lock one)")
self.screen.addstr(0, 2, "Online aircraft [%d] ('Ctrl+C' to exit, 'Enter' to lock one)" % len(self.acs))
def update(self):
if len(self.acs) == 0:
@ -143,10 +143,7 @@ class Screen(Thread):
while True:
c = self.screen.getch()
if c == 27:
curses.endwin()
os._exit(1)
elif c == curses.KEY_HOME:
if c == curses.KEY_HOME:
self.x = 1
self.y = 1
elif c == curses.KEY_NPAGE: