409d4d9...aeafa16 (merge human-ai)

This commit is contained in:
Joonas Rikkonen
2019-03-18 22:52:17 +02:00
parent 80ab27df22
commit 3301bed442
88 changed files with 2334 additions and 1657 deletions
@@ -17,6 +17,11 @@ namespace Barotrauma
static class MathUtils
{
public static float Percentage(float portion, float total)
{
return portion / total * 100;
}
public static int PositiveModulo(int i, int n)
{
return (i % n + n) % n;