Mercurial > hg > batmud > maputils
changeset 967:68c91395d9a0
Added '&' "expander" flag for creators.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 13 Jun 2010 00:32:38 +0000 |
parents | 2e1b30613d55 |
children | d124a3f8b917 |
files | README.loc mkloc.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/README.loc Sat Jun 12 18:30:10 2010 +0000 +++ b/README.loc Sun Jun 13 00:32:38 2010 +0000 @@ -105,7 +105,8 @@ '@' = Original creator/coder of the area. '!' = Recoder or re-implementor. - '%' = Maintainer (sometimes analogous to recoder, though). + '%' = Maintainer (sometimes analogous to recoder, though.) + '&' = Expander (added new things, but not original creator.) * [OPT] Timestamp: MAY be left empty, otherwise a timestamp of when the area was added in the game. Formatted as 'dd.mm.yyyy', zero-padded.
--- a/mkloc.c Sat Jun 12 18:30:10 2010 +0000 +++ b/mkloc.c Sun Jun 13 00:32:38 2010 +0000 @@ -80,6 +80,7 @@ #define NAME_ORIG (0x00001) /* '@' Original area name or coder */ #define NAME_RECODER (0x00002) /* '!' Recoder of area */ #define NAME_MAINTAINER (0x00004) /* '%' Maintainer */ +#define NAME_EXPANDER (0x00008) /* '&' Expander, adding new things */ /* Structures @@ -382,6 +383,7 @@ case '@': n++; flags |= NAME_ORIG; break; case '!': n++; flags |= NAME_RECODER; break; case '%': n++; flags |= NAME_MAINTAINER; break; + case '&': n++; flags |= NAME_EXPANDER; break; } dst[*ndst].name = th_strdup(&src[nsrc][n]); dst[*ndst].flags = flags; @@ -1310,6 +1312,7 @@ case NAME_ORIG: prefix = "@"; break; case NAME_RECODER: prefix = "!"; break; case NAME_MAINTAINER: prefix = "%"; break; + case NAME_EXPANDER: prefix = "&"; break; } fputs(prefix, outFile); fprintEsc2(outFile, name->name);