From: Eric S. Raymond Date: Thu, 29 Jun 2017 19:45:59 +0000 (-0400) Subject: Re-indented. X-Git-Tag: 1.1~14 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=3001fb1dc1761502f875bb266706a311ee5ff24f;p=open-adventure.git Re-indented. --- diff --git a/main.c b/main.c index 75bb83c..6ad7c36 100644 --- a/main.c +++ b/main.c @@ -468,17 +468,17 @@ static bool dwarfmove(void) * We'll allow this maxdie times. NDEATHS is automatically set based * on the number of snide messages available. Each death results in * a message (obituaries[n]) which offers reincarnation; if accepted, - * this results in message obituaries[0], obituaries[2], etc. The - * last time, if he wants another chance, he gets a snide remark as - * we exit. When reincarnated, all objects being carried get dropped - * at game.oldlc2 (presumably the last place prior to being killed) - * without change of props. The loop runs backwards to assure that + * this results in message obituaries[0], obituaries[2], etc. The + * last time, if he wants another chance, he gets a snide remark as + * we exit. When reincarnated, all objects being carried get dropped + * at game.oldlc2 (presumably the last place prior to being killed) + * without change of props. The loop runs backwards to assure that * the bird is dropped before the cage. (This kluge could be changed - * once we're sure all references to bird and cage are done by - * keywords.) The lamp is a special case (it wouldn't do to leave it - * in the cave). It is turned off and left outside the building (only - * if he was carrying it, of course). He himself is left inside the - * building (and heaven help him if he tries to xyzzy back into the + * once we're sure all references to bird and cage are done by + * keywords.) The lamp is a special case (it wouldn't do to leave it + * in the cave). It is turned off and left outside the building (only + * if he was carrying it, of course). He himself is left inside the + * building (and heaven help him if he tries to xyzzy back into the * cave without the lamp!). game.oldloc is zapped so he can't just * "retreat". */ diff --git a/misc.c b/misc.c index 46a3d60..7566913 100644 --- a/misc.c +++ b/misc.c @@ -106,8 +106,8 @@ void tokenize(char* raw, long tokens[4]) // grab the first two words char* words[2]; - words[0] = (char*) xmalloc(strlen(raw)+1); - words[1] = (char*) xmalloc(strlen(raw)+1); + words[0] = (char*) xmalloc(strlen(raw) + 1); + words[1] = (char*) xmalloc(strlen(raw) + 1); int word_count = sscanf(raw, "%s%s", words[0], words[1]); // make space for substrings and zero it out