diff options
author | gumi <mekolat@users.noreply.github.com> | 2016-12-21 13:21:37 -0500 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2016-12-21 13:29:06 -0500 |
commit | b387e53583285ac86f2c19377144fb5ec3b1b8ad (patch) | |
tree | 1b92afaec7366209996c2eaefc6ec75610ab33c6 | |
parent | 845b886b0844fbbf067fbb2613e332de2ca719e7 (diff) | |
download | serverdata-b387e53583285ac86f2c19377144fb5ec3b1b8ad.tar.gz serverdata-b387e53583285ac86f2c19377144fb5ec3b1b8ad.tar.bz2 serverdata-b387e53583285ac86f2c19377144fb5ec3b1b8ad.tar.xz serverdata-b387e53583285ac86f2c19377144fb5ec3b1b8ad.zip |
use a sscanf instead of explode for `@w` command
-rw-r--r-- | npc/commands/warp.txt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/npc/commands/warp.txt b/npc/commands/warp.txt index 0c6122eb..8d14a628 100644 --- a/npc/commands/warp.txt +++ b/npc/commands/warp.txt @@ -26,10 +26,7 @@ OnCall: { if (.@request$ ~= .aliases$[.@i]) { - explode .@coords$, .aliases$[.@i + 1], " "; - .@map$ = .@coords$[0]; - .@x = atoi(.@coords$[1]); - .@y = atoi(.@coords$[2]); + sscanf .aliases$[.@i + 1], "%s %d %d", .@map$, .@x, .@y; break; } } |