Daniel Gibbs 9 лет назад
Родитель
Сommit
4160791021
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      lgsm/functions/update_steamcmd.sh

+ 2 - 4
lgsm/functions/update_steamcmd.sh

@@ -236,10 +236,7 @@ if [ "${engine}" == "goldsource" ]||[ "${forceupdate}" == "1" ]; then
 	if [ "${status}" != "0" ]; then
 	if [ "${status}" != "0" ]; then
 		exitbypass=1
 		exitbypass=1
 		command_stop.sh
 		command_stop.sh
-		if [ "${gamename}" == "Classic Offensive" ]; then
-			appid="${appid_co}"
-			fn_update_steamcmd_dl
-		fi
+		fn_update_steamcmd_dl
 		exitbypass=1
 		exitbypass=1
 		command_start.sh
 		command_start.sh
 	else
 	else
@@ -248,6 +245,7 @@ if [ "${engine}" == "goldsource" ]||[ "${forceupdate}" == "1" ]; then
 else
 else
 	fn_update_request_log
 	fn_update_request_log
 	fn_update_steamcmd_check "${appid}"
 	fn_update_steamcmd_check "${appid}"
+	# will also check for second appid
 	if [ "${gamename}" == "Classic Offensive" ]; then
 	if [ "${gamename}" == "Classic Offensive" ]; then
 		fn_update_steamcmd_check "${appid_co}"
 		fn_update_steamcmd_check "${appid_co}"
 	fi
 	fi