Skip to content

Commit

Permalink
Update Thread Display to Adjust for Independent Threads Length
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkerm committed Jun 3, 2016
1 parent 7fdfc74 commit 7571645
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SBA_Serv/GUI/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def startGame(windowcaption, game, fullscreen=True, resolution=None, cfg=None, t
game.gui_initialize()

colorBlack = pygame.Color(0, 0, 0)
mt = 0

#shipw = ShipGUI(Ship((100, 100)))
#shipw.ship.velocity.magnitude = 5
Expand Down Expand Up @@ -635,9 +636,9 @@ def centerViewOnWorld(pos):
windowSurface.blit(ip, (resolution[0]/2-ip.get_width()/2, resolution[1]/2-ip.get_height()/2))

if flags["THREADS"]:
st = mt+1
rt = st
mt = 0
st = 6
rt = 6
thrs = threading.enumerate()
thrs.sort(key=lambda x: x.name, reverse=True)
for thr in thrs:
Expand Down

0 comments on commit 7571645

Please sign in to comment.