fix NICv2 bug
This commit is contained in:
@@ -103,7 +103,7 @@ NICv2 = {
|
|||||||
8: {0: {'Rc': 185}},
|
8: {0: {'Rc': 185}},
|
||||||
7: {
|
7: {
|
||||||
0: {'Rc': 370},
|
0: {'Rc': 370},
|
||||||
2: {'Rc': 370},
|
3: {'Rc': 370},
|
||||||
},
|
},
|
||||||
6: {
|
6: {
|
||||||
0: {'Rc': 926},
|
0: {'Rc': 926},
|
||||||
@@ -113,7 +113,7 @@ NICv2 = {
|
|||||||
},
|
},
|
||||||
5: {0: {'Rc': 1852}},
|
5: {0: {'Rc': 1852}},
|
||||||
4: {0: {'Rc': 3702}},
|
4: {0: {'Rc': 3702}},
|
||||||
3: {2: {'Rc': 7408}},
|
3: {3: {'Rc': 7408}},
|
||||||
2: {0: {'Rc': 14008}},
|
2: {0: {'Rc': 14008}},
|
||||||
1: {0: {'Rc': 37000}},
|
1: {0: {'Rc': 37000}},
|
||||||
0: {0: {'Rc': NA}},
|
0: {0: {'Rc': NA}},
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class Screen(Thread):
|
|||||||
|
|
||||||
def draw_frame(self):
|
def draw_frame(self):
|
||||||
self.screen.border(0)
|
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):
|
def update(self):
|
||||||
if len(self.acs) == 0:
|
if len(self.acs) == 0:
|
||||||
@@ -143,10 +143,7 @@ class Screen(Thread):
|
|||||||
while True:
|
while True:
|
||||||
c = self.screen.getch()
|
c = self.screen.getch()
|
||||||
|
|
||||||
if c == 27:
|
if c == curses.KEY_HOME:
|
||||||
curses.endwin()
|
|
||||||
os._exit(1)
|
|
||||||
elif c == curses.KEY_HOME:
|
|
||||||
self.x = 1
|
self.x = 1
|
||||||
self.y = 1
|
self.y = 1
|
||||||
elif c == curses.KEY_NPAGE:
|
elif c == curses.KEY_NPAGE:
|
||||||
|
|||||||
Reference in New Issue
Block a user