Simplify formulas based on code review

This commit is contained in:
Simon Brunel 2017-07-08 15:38:40 +02:00 committed by Evert Timberg
parent 56050dc9b7
commit 463a8dd778

View File

@ -131,9 +131,9 @@ var effects = {
return 1;
}
if (!p) {
p = 1 * 0.3;
p = 0.3;
}
if (a < Math.abs(1)) {
if (a < 1) {
a = 1;
s = p / 4;
} else {
@ -153,9 +153,9 @@ var effects = {
return 1;
}
if (!p) {
p = 1 * 0.3;
p = 0.3;
}
if (a < Math.abs(1)) {
if (a < 1) {
a = 1;
s = p / 4;
} else {
@ -175,9 +175,9 @@ var effects = {
return 1;
}
if (!p) {
p = 0.3 * 1.5;
p = 0.45;
}
if (a < Math.abs(1)) {
if (a < 1) {
a = 1;
s = p / 4;
} else {