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:
@@ -299,9 +299,9 @@ int expltype;
|
||||
}
|
||||
if (mtmp->mhp <= 0) {
|
||||
/* KMH -- Don't blame the player for pets killing gas spores */
|
||||
if (!flags.mon_moving) killed(mtmp);
|
||||
if (!context.mon_moving) killed(mtmp);
|
||||
else monkilled(mtmp, "", (int)adtyp);
|
||||
} else if (!flags.mon_moving) setmangry(mtmp);
|
||||
} else if (!context.mon_moving) setmangry(mtmp);
|
||||
}
|
||||
|
||||
/* Do your injury last */
|
||||
@@ -329,7 +329,7 @@ int expltype;
|
||||
u.mh -= damu;
|
||||
else
|
||||
u.uhp -= damu;
|
||||
flags.botl = 1;
|
||||
context.botl = 1;
|
||||
}
|
||||
|
||||
if (u.uhp <= 0 || (Upolyd && u.mh <= 0)) {
|
||||
|
||||
Reference in New Issue
Block a user