srogue: fix bug causing healing on invalid commands.
This commit is contained in:
parent
a90fd134ba
commit
e3ef50b351
2 changed files with 8 additions and 3 deletions
|
|
@ -66,7 +66,7 @@ int fromfuse;
|
||||||
swander(fromfuse)
|
swander(fromfuse)
|
||||||
int fromfuse;
|
int fromfuse;
|
||||||
{
|
{
|
||||||
daemon(rollwand, TRUE, BEFORE);
|
daemon(rollwand, TRUE, AFTER);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue