Hi there! You can check this line of code
int32 DistanceToSection =
FMath::Sqrt(((SectionXLocation-PlayerX)(SectionXLocation-PlayerX))+((SectionYLocation-PlayerY)(SectionYLocation-PlayerY)));
Overflow can happen in it.
Hi there! You can check this line of code
int32 DistanceToSection =
FMath::Sqrt(((SectionXLocation-PlayerX)(SectionXLocation-PlayerX))+((SectionYLocation-PlayerY)(SectionYLocation-PlayerY)));
Overflow can happen in it.