Re-indented.
This commit is contained in:
parent
3f580acc05
commit
3001fb1dc1
2 changed files with 12 additions and 12 deletions
20
main.c
20
main.c
|
@ -468,17 +468,17 @@ static bool dwarfmove(void)
|
||||||
* We'll allow this maxdie times. NDEATHS is automatically set based
|
* We'll allow this maxdie times. NDEATHS is automatically set based
|
||||||
* on the number of snide messages available. Each death results in
|
* on the number of snide messages available. Each death results in
|
||||||
* a message (obituaries[n]) which offers reincarnation; if accepted,
|
* a message (obituaries[n]) which offers reincarnation; if accepted,
|
||||||
* this results in message obituaries[0], obituaries[2], etc. The
|
* this results in message obituaries[0], obituaries[2], etc. The
|
||||||
* last time, if he wants another chance, he gets a snide remark as
|
* last time, if he wants another chance, he gets a snide remark as
|
||||||
* we exit. When reincarnated, all objects being carried get dropped
|
* we exit. When reincarnated, all objects being carried get dropped
|
||||||
* at game.oldlc2 (presumably the last place prior to being killed)
|
* at game.oldlc2 (presumably the last place prior to being killed)
|
||||||
* without change of props. The loop runs backwards to assure that
|
* without change of props. The loop runs backwards to assure that
|
||||||
* the bird is dropped before the cage. (This kluge could be changed
|
* 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
|
* 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
|
* 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
|
* 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
|
* 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
|
* 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
|
* cave without the lamp!). game.oldloc is zapped so he can't just
|
||||||
* "retreat". */
|
* "retreat". */
|
||||||
|
|
||||||
|
|
4
misc.c
4
misc.c
|
@ -106,8 +106,8 @@ void tokenize(char* raw, long tokens[4])
|
||||||
|
|
||||||
// grab the first two words
|
// grab the first two words
|
||||||
char* words[2];
|
char* words[2];
|
||||||
words[0] = (char*) xmalloc(strlen(raw)+1);
|
words[0] = (char*) xmalloc(strlen(raw) + 1);
|
||||||
words[1] = (char*) xmalloc(strlen(raw)+1);
|
words[1] = (char*) xmalloc(strlen(raw) + 1);
|
||||||
int word_count = sscanf(raw, "%s%s", words[0], words[1]);
|
int word_count = sscanf(raw, "%s%s", words[0], words[1]);
|
||||||
|
|
||||||
// make space for substrings and zero it out
|
// make space for substrings and zero it out
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue