Reindend, compile out all save stuff

This commit is contained in:
NHOrus 2017-07-01 16:46:51 +03:00
parent 8cc5ee5412
commit 45820bc8cd
2 changed files with 21 additions and 10 deletions

View file

@ -94,10 +94,18 @@ static int attack(struct command_t *command)
spk = (dwarves > 1) ? OGRE_PANIC1 : OGRE_PANIC2;
} else if (obj == BEAR) {
switch (game.prop[BEAR]) {
case UNTAMED_BEAR: spk = BEAR_HANDS; break;
case SITTING_BEAR: spk = BEAR_CONFUSED; break;
case CONTENTED_BEAR: spk = BEAR_CONFUSED; break;
case BEAR_DEAD: spk = ALREADY_DEAD; break;
case UNTAMED_BEAR:
spk = BEAR_HANDS;
break;
case SITTING_BEAR:
spk = BEAR_CONFUSED;
break;
case CONTENTED_BEAR:
spk = BEAR_CONFUSED;
break;
case BEAR_DEAD:
spk = ALREADY_DEAD;
break;
}
} else if (obj == DRAGON && game.prop[DRAGON] == 0) {
/* Fun stuff for dragon. If he insists on attacking it, win!

3
main.c
View file

@ -122,6 +122,8 @@ int main(int argc, char *argv[])
/* Start-up, dwarf stuff */
make_zzword(game.zzword);
#ifndef ADVENT_NOSAVE
if (!rfp) {
game.novice = yes(arbitrary_messages[WELCOME_YOU], arbitrary_messages[CAVE_NEARBY], arbitrary_messages[NO_MESSAGE]);
if (game.novice)
@ -129,6 +131,7 @@ int main(int argc, char *argv[])
} else {
restore(rfp);
}
#endif
if (logfp)
fprintf(logfp, "seed %ld\n", seedval);