Skip to content
Snippets Groups Projects
Commit 59b6c369 authored by stefan's avatar stefan
Browse files

dokk (the docking game):

 - fix time elapse bug

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1968 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent c748bc2f
No related branches found
No related tags found
No related merge requests found
...@@ -138,14 +138,15 @@ class Level(QtCore.QObject): ...@@ -138,14 +138,15 @@ class Level(QtCore.QObject):
self.UpdateScores() self.UpdateScores()
def Finished(self): def Finished(self):
self._started = False
self.timer.stop() self.timer.stop()
self.stop_time = time.time() self.stop_time = time.time()
Dokk().gl_win.SetLockInput(True) Dokk().gl_win.SetLockInput(True)
if self.GetRank() > 0: if self._started:
self.hud_level_end_tt.Start() if self.GetRank() > 0:
else: self.hud_level_end_tt.Start()
self.hud_level_end_ntt.Start() else:
self.hud_level_end_ntt.Start()
self._started = False
def Begin(self): def Begin(self):
self.Reset() self.Reset()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment