Fix weight of containers in lev_comp

This commit is contained in:
Pasi Kallinen
2016-01-06 18:25:17 +02:00
parent 785aba242a
commit 0a25502593
2 changed files with 6 additions and 4 deletions

View File

@@ -99,6 +99,7 @@ zapping wand of opening at yourself, unlock carried boxes
dissolve iron bars by force-fighting with wielded potion of acid
poison breath leaves a trail of poison gas
make vault guard accept names starting with number
fix weight of containers in special levels
Platform- and/or Interface-Specific Fixes

View File

@@ -1873,11 +1873,12 @@ struct mkroom *croom;
}
}
} else {
struct obj *cobj = container_obj[container_idx - 1];
remove_object(otmp);
if (container_obj[container_idx - 1])
(void) add_to_container(container_obj[container_idx - 1],
otmp);
else {
if (cobj) {
(void) add_to_container(cobj, otmp);
cobj->owt = weight(cobj);
} else {
obj_extract_self(otmp);
obfree(otmp, NULL);
return;