Przeglądaj źródła

Merge pull request #1477 from GameServerManagers/bug/mta-forceupdate

Allows MTA to force update
Daniel Gibbs 9 lat temu
rodzic
commit
040b9124c1
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      lgsm/functions/core_getopt.sh

+ 2 - 2
lgsm/functions/core_getopt.sh

@@ -58,8 +58,8 @@ currentopt+=( "${cmd_update_linuxgsm[@]}" )
 # Exclude noupdate games here
 if [ "${gamename}" != "Battlefield: 1942" ]&&[ "${engine}" != "quake" ]&&[ "${engine}" != "idtech2" ]&&[ "${engine}" != "idtech3" ]&&[ "${engine}" != "iw2.0" ]&&[ "${engine}" != "iw3.0" ]; then
 	currentopt+=( "${cmd_update[@]}" )
-	# force update for SteamCMD only
-	if [ -n "${appid}" ]; then
+	# force update for SteamCMD only or MTA
+	if [ -n "${appid}" ] || [ "${gamename}" == "Multi Theft Auto" ]; then
 		currentopt+=( "${cmd_force_update[@]}" )
 	fi
 fi