srogue: fix bug causing healing on invalid commands.

This commit is contained in:
John "Elwin" Edwards 2010-11-27 16:49:44 +00:00
parent a90fd134ba
commit e3ef50b351
2 changed files with 8 additions and 3 deletions

View file

@ -66,7 +66,7 @@ int fromfuse;
swander(fromfuse) swander(fromfuse)
int fromfuse; int fromfuse;
{ {
daemon(rollwand, TRUE, BEFORE); daemon(rollwand, TRUE, AFTER);
} }

View file

@ -242,9 +242,14 @@ char **envp;
/* Start up daemons and fuses */ /* Start up daemons and fuses */
daemon(status, TRUE, BEFORE); daemon(status, TRUE, BEFORE);
daemon(doctor, TRUE, BEFORE);
daemon(stomach, TRUE, BEFORE);
daemon(runners, TRUE, AFTER); daemon(runners, TRUE, AFTER);
/*
* These daemons have been moved to AFTER because BEFORE daemons
* get called every command, even invalid ones. Hopefully this
* won't break anything.
*/
daemon(doctor, TRUE, AFTER);
daemon(stomach, TRUE, AFTER);
fuse(swander, TRUE, WANDERTIME); fuse(swander, TRUE, WANDERTIME);
/* Give the rogue his weaponry */ /* Give the rogue his weaponry */