minor fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6213 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-04-05 19:17:16 +00:00
parent fedf70575e
commit d2e12f9d6d
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ __gibsgore = 1 // Default value for gibs slider.
// The code used below is for initializing the dynamic gamma system "ofc_gamma_list" alias to be stored in saved.cfg
// Initialize the list (if it doesn't already exist) using the current gamma as initial values.
if (! (checkalias ofc_gamma_list)) [
ofc_gamma_list = [ ]
ofc_gamma_list = ""
loop ogl (listlen $defaultmaps) [
add2list ofc_gamma_list $gamma
]
+3 -3
View File
@@ -1,6 +1,6 @@
// Initialize the list (if it doesn't already exist) using the current gamma as initial values.
if (! (checkalias ofc_gamma_list)) [
ofc_gamma_list = [ ]
ofc_gamma_list = ""
loop ogl (listlen $defaultmaps) [
add2list ofc_gamma_list $gamma
]
@@ -12,7 +12,7 @@ setgamma = [
if (&& (<= $arg1 300) (>= $arg1 30)) [
if (strstr $defaultmaps (curmap 1)) [
tmp_gamma_list = $ofc_gamma_list
ofc_gamma_list = [ ]
ofc_gamma_list = ""
cmapp = (findlist $defaultmaps (curmap 1)) // Find the position in the list of the current map
loop sgl (listlen $defaultmaps) [
if (= $sgl $cmapp) [ // Add the new gamma at the correct position in the list
@@ -32,7 +32,7 @@ setgamma = [
// Plugin to mapstartalways on every run if it doesn't already exist.
if (! (checkalias dyngamma)) [ dyngamma = 0 ]
if (! (checkalias mapstartalways)) [ mapstartalways = [ ] ]
if (! (checkalias mapstartalways)) [ mapstartalways = "" ]
if (! (strstr $mapstartalways dyngamma)) [
add2alias mapstartalways [
if $dyngamma [ if (strstr $defaultmaps (curmap 1)) [ gamma (at $ofc_gamma_list (findlist $defaultmaps (curmap 1))) ] ]
+1 -1
View File
@@ -353,7 +353,7 @@ customclaimadminscript = [
setadmin 0; echo you relinquished admin status
]
] [
echo (concat (c 3)Error: (c 5)you're not connected to $_CAS_servername servers)
echo (c 3)Error: (c 5)you're not connected to $_CAS_servername servers
]
]