diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2011-08-06 14:35:54 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2011-08-06 14:35:54 -0700 |
commit | b6118935745c5b72fea8aafb00a5ee99695069f1 (patch) | |
tree | 4e744a518ee1aa664cbfeccbcbcb076c23b5c090 /src/map/npc.c | |
parent | 33af4d422e9127086bd218e63369174ca85ea754 (diff) | |
download | tmwa-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.
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 4 |
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 |