shop bits

Eliminate a couple of minor redundancies; no change in game play.

dropy() - only check about selling object if there is a shop on the level.
pick_obj() - leave it to addinv() clear object's no_charge bit.
This commit is contained in:
nethack.rankin
2006-10-31 05:32:07 +00:00
parent 3911716297
commit 43e22a1389
2 changed files with 1 additions and 3 deletions

View File

@@ -573,7 +573,7 @@ register struct obj *obj;
place_object(obj, u.ux, u.uy);
if (obj == uball)
drop_ball(u.ux,u.uy);
else
else if (level.flags.has_shop)
sellobj(obj, u.ux, u.uy);
stackobj(obj);
if(Blind && Levitation)