B05001 - eating a tin in a stack on the floor
Make sure to splitobj tin.tin before calling bill_dummy_object. Avoids charging to all the stacked tins when you eat the 1st one.
This commit is contained in:
@@ -1057,6 +1057,8 @@ opentin() /* called during each move whilst opening a tin */
|
||||
!tin.tin->no_charge)
|
||||
|| tin.tin->unpaid)) {
|
||||
verbalize("You open it, you bought it!");
|
||||
/* charge for one at pre-eating cost */
|
||||
if(tin.tin->quan > 1L) tin.tin = splitobj(tin.tin, 1L);
|
||||
bill_dummy_object(tin.tin);
|
||||
}
|
||||
|
||||
@@ -1090,6 +1092,8 @@ opentin() /* called during each move whilst opening a tin */
|
||||
!tin.tin->no_charge)
|
||||
|| tin.tin->unpaid)) {
|
||||
verbalize("You open it, you bought it!");
|
||||
/* charge for one at pre-eating cost */
|
||||
if(tin.tin->quan > 1L) tin.tin = splitobj(tin.tin, 1L);
|
||||
bill_dummy_object(tin.tin);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user