diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-29 13:51:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-29 13:51:53 +0300 |
commit | 2c433b9f3e4e1a862173b266665ce7271a32a765 (patch) | |
tree | 5acbd1fd85e894b65c103927d672e009706817a1 | |
parent | 17fb74bf4cd054a7ad07cd912333a82265569a87 (diff) | |
download | serverdata-2c433b9f3e4e1a862173b266665ce7271a32a765.tar.gz serverdata-2c433b9f3e4e1a862173b266665ce7271a32a765.tar.bz2 serverdata-2c433b9f3e4e1a862173b266665ce7271a32a765.tar.xz serverdata-2c433b9f3e4e1a862173b266665ce7271a32a765.zip |
Replace checkcell to checknpccell.
-rw-r--r-- | npc/functions/npcmovegraph.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/functions/npcmovegraph.txt b/npc/functions/npcmovegraph.txt index 278c80a82..ff7b7d75e 100644 --- a/npc/functions/npcmovegraph.txt +++ b/npc/functions/npcmovegraph.txt @@ -245,7 +245,7 @@ function script getrandompoint { { .@rx = rand(.@x1, .@x2); .@ry = rand(.@y2, .@y2); - if (checkcell(.@map$, .@rx, .@ry, cell_chkpass)) + if (checknpccell(.@map$, .@rx, .@ry, cell_chkpass)) goto L_Found; } @@ -253,7 +253,7 @@ function script getrandompoint { for (;.@rx <= .@x2; .@rx++) { for (;.@ry <= .@y2; .@ry++) - if (checkcell(.@map$, .@rx, .@ry, cell_chkpass)) + if (checknpccell(.@map$, .@rx, .@ry, cell_chkpass)) goto L_Found; .@ry = .@y1; } @@ -261,7 +261,7 @@ function script getrandompoint { // we check the rectangle from beginning to end for (.@rx = .@x1; .@rx <= .@x2; .@rx++) for (.@ry = .@y1; .@ry <= .@y2; .@ry++) - if (checkcell(.@map$, .@rx, .@ry, cell_chkpass)) + if (checknpccell(.@map$, .@rx, .@ry, cell_chkpass)) goto L_Found; // finally, if we don't find anything |