Eliminate magic numbers from C side of condition handling.
This commit is contained in:
parent
2bdf9e2803
commit
1cbc3d827b
4 changed files with 51 additions and 18 deletions
3
misc.c
3
misc.c
|
@ -571,7 +571,8 @@ void move(obj_t object, loc_t where)
|
|||
from = game.fixed[object - NOBJECTS];
|
||||
else
|
||||
from = game.place[object];
|
||||
if (from != LOC_NOWHERE && from != CARRIED && !SPECIAL(from))
|
||||
/* (ESR) Used to check for !SPECIAL(from). I *think* that was wrong... */
|
||||
if (from != LOC_NOWHERE && from != CARRIED)
|
||||
carry(object, from);
|
||||
drop(object, where);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue