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:
@@ -129,6 +129,7 @@ l_obj_add_to_container(lua_State *L)
|
||||
lo->obj = otmp;
|
||||
lo->obj->lua_ref_cnt += refs;
|
||||
}
|
||||
lobox->obj->owt = weight(lobox->obj);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user