Jump to content

[0.26.1] Balancing_InsideRing should be adjusted


Rinart73

Recommended Posts

Avorion: 0.25.2 (and earlier) - 0.26.1 0.29.6

 

data\scripts\lib\galaxy.lua

function Balancing_InsideRing(x, y)
    local d2 = x * x + y * y
    return d2 < blockRingMin * blockRingMin
end

 

"<" should be replaced with "<=", otherwise if we're in the sector (147:0) (which IS inside ring), "Balancing_InsideRing" returns "false"

Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...