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:
Pasi Kallinen
2024-01-24 17:55:36 +02:00
parent cd74a2a99e
commit c2ddd2a7c2
4 changed files with 8 additions and 1 deletions

View File

@@ -2950,6 +2950,8 @@ doeat(void)
if (!dont_start)
start_eating(otmp, already_partly_eaten);
else
otmp->owt = weight(otmp);
return ECMD_TIME;
}