Set max players in sysconf, not in the shell script

This commit is contained in:
Pasi Kallinen
2016-12-14 16:45:06 +02:00
parent 86df94b281
commit f3b1cc74c6
2 changed files with 7 additions and 12 deletions

View File

@@ -4,8 +4,6 @@
HACKDIR=/usr/games/lib/nethackdir
export HACKDIR
HACK=$HACKDIR/nethack
# NB: MAXNROFPLAYERS is deprecated in favor of MAXPLAYERS in SYSCF.
MAXNROFPLAYERS=4
# Since Nethack.ad is installed in HACKDIR, add it to XUSERFILESEARCHPATH
case "x$XUSERFILESEARCHPATH" in
@@ -65,11 +63,4 @@ fi
cd $HACKDIR
case $1 in
-s*)
exec $HACK "$@"
;;
*)
exec $HACK "$@" $MAXNROFPLAYERS
;;
esac
exec $HACK "$@"