make sliders slide

This commit is contained in:
yugecin
2016-12-11 10:08:22 +01:00
parent cd06b13f66
commit 1bd5da6434
2 changed files with 34 additions and 3 deletions

View File

@@ -1455,7 +1455,7 @@ public class Options {
* @param container the game container
* @param d the dragged distance (modified by multiplier)
*/
public void drag(GameContainer container, int d) {
public void drag(GameContainer container, int d) { // TODO rename this
if (type == OptionType.NUMERIC)
val = Utils.clamp(val + d, min, max);
}