diff options
author | Joseph Botosh <rumly111@gmail.com> | 2015-10-27 17:39:54 +0200 |
---|---|---|
committer | Joseph Botosh <rumly111@gmail.com> | 2015-10-27 17:40:58 +0200 |
commit | c9370fa60f775be16e3d14030817335304315812 (patch) | |
tree | 268cca406fff5ecb163dc402e94680dbc56bdf2a | |
parent | b2bd90629e528caac8a23306dad142ffc2038983 (diff) | |
download | serverdata-c9370fa60f775be16e3d14030817335304315812.tar.gz serverdata-c9370fa60f775be16e3d14030817335304315812.tar.bz2 serverdata-c9370fa60f775be16e3d14030817335304315812.tar.xz serverdata-c9370fa60f775be16e3d14030817335304315812.zip |
fix getrandompoint function
-rw-r--r-- | npc/functions/npcmovegraph.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/npcmovegraph.txt b/npc/functions/npcmovegraph.txt index 284c8c19..5629736c 100644 --- a/npc/functions/npcmovegraph.txt +++ b/npc/functions/npcmovegraph.txt @@ -227,7 +227,7 @@ function script getnextmovecmd { function script getrandompoint { if (getargcount() < 4) { - debugmes "error: getrandompoint(x, y, w, h) takes 4 arguments"; + debugmes "error: getrandompoint(x1, y1, x2, y2) takes 4 arguments"; return -1; } @@ -244,7 +244,7 @@ function script getrandompoint { for (.@poke = 0; .@poke < .@max_pokes; .@poke++) { .@rx = rand(.@x1, .@x2); - .@ry = rand(.@y2, .@y2); + .@ry = rand(.@y1, .@y2); if (checknpccell(.@map$, .@rx, .@ry, cell_chkpass)) goto L_Found; } |