From 7c48978ec5543c1ac043147aca064b35c1fdd88f Mon Sep 17 00:00:00 2001 From: Bukz Date: Tue, 7 Jun 2011 17:36:00 +0000 Subject: [PATCH] oops again D: git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6517 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/scripts.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/scripts.cfg b/config/scripts.cfg index 00a73b1c..3974223f 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -258,7 +258,7 @@ add2list = [ if (strcmp "" (getalias $arg1)) [ $arg1 = $arg2 ] [ $arg1 = (concat rrnd = [ + (rnd (- $arg2 $arg1)) $arg1 ] // listaverage - Returns the average of a list of numbers. (Supports ints & floats - e.g. echo (listaverage "2 5 5") // Output: 4.0) -listaverage = [ if (&& (listlen $arg1) (testlist $arg1)) [ tmp_sum = 0; loop gsl (listlen $arg1) [ += tmp_sum (at $arg1 $gsl) ]; result (divf $tmp_sum (listlen $arg1)) ] ] +listaverage = [ if (&& (listlen $arg1) (testlist $arg1)) [ tmp_sum = 0; loop gsl (listlen $arg1) [ +=f tmp_sum (at $arg1 $gsl) ]; result (divf $tmp_sum (listlen $arg1)) ] ] // copyent & pasteent - Quickly copy/paste the current closest entity. Initialize the two aliases below as "NULL" for error catching. // If /config/saved.cfg is readable/writable, errors are only possible up until the very first use of /copyent.