dinex86 / FOV-Calculator

A simple and lightweight 'Field of View' calculator for modern racing simulations.
https://dinex86.github.io/FOV-Calculator/
MIT License
56 stars 20 forks source link

Minimum value not enforced when minimum is 0 #14

Open retep998 opened 11 months ago

retep998 commented 11 months ago

value = game.min ? Math.max(value, game.min) : value; That conditional is false when game.min is 0 which results in it simply returning value instead of performing the Math.max operation. Currently this only affects EA WRC (easily observable by increasing the distance to the screen all the way to the right and watching the EA WRC value go negative).