Global Const initialized from monkey.math.Pi calculation

About Monkey 2 Forums Monkey 2 Development Global Const initialized from monkey.math.Pi calculation

This topic contains 1 reply, has 2 voices, and was last updated by  nerobot 2 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5520

    nullterm
    Participant

    Taking MX2 for a spin, first time in a long while. Came across an initialization bug, DEG_TO_RAD is a global const and seems to be initialized before monkey.path.Pi is and is incorrectly initialized.

    Will output DEG_TO_RAD 0.

    However, if I change the value to a constant, then it will work.

    #5531

    nerobot
    Participant

    Added to issues https://github.com/blitz-research/monkey2/issues/123

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.