fix pippi radius option value range

This commit is contained in:
yugecin 2016-12-11 14:25:30 +01:00
parent 347705aadf
commit cfa27727db

View File

@ -904,18 +904,7 @@ public class Options {
PIPPI_RADIUS_PERCENT ("Pippi radius", "PippiRad", "Radius of pippi, percentage of circle radius", 100, 0, 100) { PIPPI_RADIUS_PERCENT ("Pippi radius", "PippiRad", "Radius of pippi, percentage of circle radius", 100, 0, 100) {
@Override @Override
public String getValueString() { public String getValueString() {
return (val / 2) + "%"; return val + "%";
}
@Override
public void drag(GameContainer container, int d) {
super.drag(container, d);
Pippi.setRadiusPercent(val / 2);
}
@Override
public void read(String s) {
super.read(s);
Pippi.setRadiusPercent(val / 2);
} }
}, },
PIPPI_ANGLE_INC_MUL("Pippi angle increment multiplier", "PippiAngIncMul", "How fast pippi's angle increments", 10, -200, 200) { PIPPI_ANGLE_INC_MUL("Pippi angle increment multiplier", "PippiAngIncMul", "How fast pippi's angle increments", 10, -200, 200) {