diff --git a/assaultcube.sh b/assaultcube.sh index 84a2268b..2cba7f63 100755 --- a/assaultcube.sh +++ b/assaultcube.sh @@ -4,6 +4,10 @@ #CUBE_DIR=/usr/local/cube CUBE_DIR=./ +# CUBE_OPTIONS contains any command line options you would like to start Sauerbraten with. +#CUBE_OPTIONS="-f" +CUBE_OPTIONS="--home=${HOME}/.assaultcube --init" + # SYSTEM_NAME should be set to the name of your operating system. #SYSTEM_NAME=Linux SYSTEM_NAME=`uname -s` @@ -43,7 +47,7 @@ fi if [ -x ${CUBE_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client ] then cd ${CUBE_DIR} - exec ${CUBE_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client --init $* + exec ${CUBE_DIR}/bin_unix/${MACHINE_NAME}${SYSTEM_NAME}client ${CUBE_OPTIONS} $@ else echo "Your platform does not have a pre-compiled Cube client." echo "Please follow the following steps to build a native client:"