summarylogtreecommitdiffstats
path: root/actionfps-cubedir.patch
blob: 642610b96db5ff68f9a13515d8ef073af4d718e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- server.sh.orig	2019-02-03 17:40:47.795480878 -0800
+++ server.sh	2019-02-03 17:41:35.728521639 -0800
@@ -3,7 +3,7 @@
 # CUBE_DIR should refer to the directory in which AssaultCube is placed.
 #CUBE_DIR=~/assaultcube
 #CUBE_DIR=/usr/local/assaultcube
-CUBE_DIR=./
+CUBE_DIR=$(dirname "$(readlink -f "${0}")")
 
 # CUBE_OPTIONS starts AssaultCube with any command line options you choose.
 CUBE_OPTIONS=""