trunk only: preserving context (src files)
Pat Rankin wrote: > collect them all into some new struct and > save that separately rather than jamming more non-option stuff > into struct flags. This patch: - collects all context/tracking related fields from flags into a new structure called "context." It also adds the following to the new structure: - stethoscope turn support - victual support - tin support
This commit is contained in:
@@ -316,7 +316,7 @@ register struct monst *mtmp;
|
||||
growl_verb = growl_sound(mtmp);
|
||||
if (growl_verb) {
|
||||
pline("%s %s!", Monnam(mtmp), vtense((char *)0, growl_verb));
|
||||
if(flags.run) nomul(0);
|
||||
if(context.run) nomul(0);
|
||||
wake_nearto(mtmp->mx, mtmp->my, mtmp->data->mlevel * 18);
|
||||
}
|
||||
}
|
||||
@@ -357,7 +357,7 @@ register struct monst *mtmp;
|
||||
}
|
||||
if (yelp_verb) {
|
||||
pline("%s %s!", Monnam(mtmp), vtense((char *)0, yelp_verb));
|
||||
if(flags.run) nomul(0);
|
||||
if(context.run) nomul(0);
|
||||
wake_nearto(mtmp->mx, mtmp->my, mtmp->data->mlevel * 12);
|
||||
}
|
||||
}
|
||||
@@ -389,7 +389,7 @@ register struct monst *mtmp;
|
||||
}
|
||||
if (whimper_verb) {
|
||||
pline("%s %s.", Monnam(mtmp), vtense((char *)0, whimper_verb));
|
||||
if(flags.run) nomul(0);
|
||||
if(context.run) nomul(0);
|
||||
wake_nearto(mtmp->mx, mtmp->my, mtmp->data->mlevel * 6);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user