From b387e53583285ac86f2c19377144fb5ec3b1b8ad Mon Sep 17 00:00:00 2001 From: gumi Date: Wed, 21 Dec 2016 13:21:37 -0500 Subject: use a sscanf instead of explode for `@w` command --- npc/commands/warp.txt | 5 +---- 1 file changed, 1 insertion(+), 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; } } -- cgit v1.2.3-60-g2f50