Commit ce3c7c42 authored by Luca Cristaldi's avatar Luca Cristaldi
Browse files

fix game scene

parent cfab2747
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: