summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-08-06 14:35:54 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-08-06 14:35:54 -0700
commitb6118935745c5b72fea8aafb00a5ee99695069f1 (patch)
tree4e744a518ee1aa664cbfeccbcbcb076c23b5c090
parent33af4d422e9127086bd218e63369174ca85ea754 (diff)
downloadtmwa-b6118935745c5b72fea8aafb00a5ee99695069f1.tar.gz
tmwa-b6118935745c5b72fea8aafb00a5ee99695069f1.tar.bz2
tmwa-b6118935745c5b72fea8aafb00a5ee99695069f1.tar.xz
tmwa-b6118935745c5b72fea8aafb00a5ee99695069f1.zip
Allow pipe as a separator in scripts, so we can eliminate all tabs
Note still that a string of either of the tokens is converted to a single tab internally.
-rw-r--r--src/map/npc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 0335e9c..6f09777 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2343,9 +2343,9 @@ int do_init_npc (void)
|| (j && line[j - 1] == ',')))
line[j++] = ' ';
}
- else if (line[i] == '\t')
+ else if (line[i] == '\t' || line[i] == '|')
{
- if (!(j && line[j - 1] == '\t'))
+ if (!(j && (line[j - 1] == '\t' || line[j - 1] == '|')))
line[j++] = '\t';
}
else