Commit ce3c7c42 authored by Luca Cristaldi's avatar Luca Cristaldi

fix game scene

parent cfab2747
......@@ -37,12 +37,12 @@ if __name__ == "__main__":
stage.add_callback(rocket.send)
def activate_callback(scene):
if(scene == conn.game_scene.flight):
if(scene == conn.krpc.GameScene.flight):
stage.start()
else:
stage.wait()
scene = conn.add_stream(getattr, conn, 'current_game_scene')
scene = conn.add_stream(getattr, conn.krpc.space_center, 'current_game_scene')
scene.add_callback(activate_callback)
while 42:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment