gencl fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6232 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-04-09 11:41:10 +00:00
parent 0f06b8add3
commit 62d3434efb
+1 -1
View File
@@ -325,7 +325,7 @@ gencl = [
tmp_cl = ""
loop gcl 3 [ add2list tmp_cl (rrnd 1 256) ]
if $tmp_numargs [
if (&& (! (= $selx 0)) (! (= $sely 0))) [
if (|| (! (= $selx 0)) (! (= $sely 0))) [
echo (c 3)Trying colored light: (c 5) $arg1 (at $tmp_cl 0) (at $tmp_cl 1) (at $tmp_cl 2)
newent light $arg1 (at $tmp_cl 0) (at $tmp_cl 1) (at $tmp_cl 2)
] [ echo (c 3)Error: (c 5)If an argument is given for (concatword (c 1) gencl (c 5) ",") you must select a cube where you want the new light to be placed. ]