sil-quirk / sil-q

Other
210 stars 32 forks source link

Error in distance_squared() #92

Open NickMcConnell opened 2 years ago

NickMcConnell commented 2 years ago

I'm pretty sure ay * ay + ax + ax should be ay * ay + ax * ax; this is a very old bug in Sil.

sil-quirk commented 2 years ago

Yeah this definitely looks like a bug. Luckily it only appears to be used in calculating the AI of ranged enemies. Let's hope fixing it doesn't make them too much more effective.