From: Rick L Bird Date: Thu, 5 May 2011 22:30:02 +0000 (-0400) Subject: Added in missing features in @decompile noticed within this PennMUSH 1.8.3p11 commit X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=7d8a903bfb38fe0273126ff96ebd0b6430c3e5b6;p=cobramush.git Added in missing features in @decompile noticed within this PennMUSH 1.8.3p11 commit Author: captdeaf@gmail.com Date: Wed Oct 28 06:16:06 2009 +0000 Fixed a warning caused by using assignment in a while statement. No CobraMUSH Issue related to this. --- diff --git a/src/look.c b/src/look.c index bc2898d..5bb9cce 100644 --- a/src/look.c +++ b/src/look.c @@ -1592,6 +1592,7 @@ do_decompile(dbref player, const char *xname, const char *prefix, dbref thing; const char *object = NULL; char *attrib, *name; + char *attrname; char dbnum[40]; /* @decompile must always have an argument */ @@ -1620,8 +1621,10 @@ do_decompile(dbref player, const char *xname, const char *prefix, /* if we have an attribute arg specified, wild match on it */ if (attrib && *attrib) { - switch (dbflag) { - case DEC_DB: + attrname = attrib; + while ((attrib = split_token(&attrname, ' ')) != NULL) { + switch (dbflag) { + case DEC_DB: decompile_atrs(player, thing, dbnum, attrib, prefix, skipdef); break; default: @@ -1631,6 +1634,7 @@ do_decompile(dbref player, const char *xname, const char *prefix, decompile_atrs(player, thing, Name(thing), attrib, prefix, skipdef); break; } + } mush_free(name, "dd.string"); return; }