From b6118935745c5b72fea8aafb00a5ee99695069f1 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 6 Aug 2011 14:35:54 -0700 Subject: 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. --- src/map/npc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/npc.c') 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 -- cgit v1.2.3-60-g2f50