aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rwxr-xr-xgames/dr4
1 files changed, 3 insertions, 1 deletions
diff --git a/games/dr b/games/dr
index a236dc1e..e1db163d 100755
--- a/games/dr
+++ b/games/dr
@@ -5,7 +5,9 @@
[ "$#" -eq 1 ] || exit 2
# Arcane string chopping
-n=1 a=0 nd=${1%+*} d=${nd#*d}
+n=1 a=0
+nd=${1%+*}
+d=${nd#*d}
[ "${nd%d*}" != "" ] && n=${nd%d*}
[ "${1#*+}" = "$1" ] || a=${1#*+}