Encapsulate object-state state tests and setttings in macros.
This isn't a complete refwctoring, just the part than can be done with transparetly correct capture of inlinre logic into macros. No logic changes. Tests pass, 100% coverage.
This commit is contained in:
parent
9cd7c53d78
commit
02987d0330
7 changed files with 32 additions and 25 deletions
2
misc.c
2
misc.c
|
@ -600,7 +600,7 @@ void put(obj_t object, loc_t where, int pval)
|
|||
* negated game.prop values for the repository objects. */
|
||||
{
|
||||
move(object, where);
|
||||
game.objects[object].prop = (-1) - pval;; // Needs to stay synchronized with STASHED
|
||||
game.objects[object].prop = (-1) - pval;; // Needs to stay synchronized with PROP_STASHED
|
||||
}
|
||||
|
||||
void carry(obj_t object, loc_t where)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue