Fix some object weight problems
There were few places where the object weight was not updated: - container when the contents were broken by impact - starting to eat but getting stopped by rotten food - using lua, container when putting an object inside it - when a single egg of a larger stack hatched
This commit is contained in:
@@ -1118,6 +1118,7 @@ hatch_egg(anything *arg, long timeout)
|
||||
/* still some eggs left */
|
||||
/* Instead of ordinary egg timeout use a short one */
|
||||
attach_egg_hatch_timeout(egg, (long) rnd(12));
|
||||
egg->owt = weight(egg);
|
||||
} else if (carried(egg)) {
|
||||
useup(egg);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user