1. Arne Babenhauserheide
  2. hexbattle

Commits

Arne Babenhauserheide  committed 78e4122

code polish

  • Participants
  • Parent commits 58d5a41
  • Branches default

Comments (0)

Files changed (1)

File hexbattle_gui.py

View file
         if not result: return # inactive state. TODO: add an explicit result.
         
         if result.name == "init":
-            schedule_once(result.command, 0.01)
+            return schedule_once(result.command, 0.01)
         
         if result.name == "computer turn":
             res = result.command()
-            self.eval_computer_turn(res)
+            return self.eval_computer_turn(res)
             
     def update_interactive_elements(self, dt=0): 
         """Update the interactive elements so they stay fast at all times."""