Merge branch 'aweinstock/speed-floor-quickfix' into 'master'

Change the speed floor to `0.1` (avoiding a division by zero in modular...

See merge request veloren/veloren!1804
This commit is contained in:
Samuel Keiffer 2021-02-21 02:49:57 +00:00
commit 3cb6a5592d

View File

@ -93,8 +93,8 @@ impl StatKind {
// TODO: add stats from enhancement slots
}
// if an item has 0.0 speed, that panics due to being infinite duration, so
// enforce speed >= 0.5
stats.speed = stats.speed.max(0.5);
// enforce speed >= 0.1
stats.speed = stats.speed.max(0.1);
stats
}
}