Fixed In UtBS::2 a 1 based random array index was being created.

I changed it to a 0 based random index.
This commit is contained in:
Thonsew 2011-09-26 19:58:02 +00:00
parent e39c4700ec
commit 1432676b55

View file

@ -2061,6 +2061,7 @@
# pick one random ghost_spawn from which
# to store all locations in range
{RANDOM 1..$ghost_spawn.length}
{VARIABLE_OP random sub 1}
{VARIABLE ghost_x $ghost_spawn[$random].x}
{VARIABLE ghost_y $ghost_spawn[$random].y}
{CLEAR_VARIABLE ghost_spawn}