… | |
… | |
1073 | * In this case, the object to be removed is in someones |
1073 | * In this case, the object to be removed is in someones |
1074 | * inventory. |
1074 | * inventory. |
1075 | */ |
1075 | */ |
1076 | if (env) |
1076 | if (env) |
1077 | { |
1077 | { |
|
|
1078 | flag [FLAG_REMOVED] = false; // hack around the issue of visible_to checking flag_removed |
1078 | if (object *pl = visible_to ()) |
1079 | if (object *pl = visible_to ()) |
1079 | esrv_del_item (pl->contr, count); |
1080 | esrv_del_item (pl->contr, count); |
|
|
1081 | flag [FLAG_REMOVED] = true; // hack around the issue of visible_to checking flag_removed |
1080 | |
1082 | |
1081 | adjust_weight (env, -total_weight ()); |
1083 | adjust_weight (env, -total_weight ()); |
1082 | |
1084 | |
1083 | *(above ? &above->below : &env->inv) = below; |
1085 | *(above ? &above->below : &env->inv) = below; |
1084 | |
1086 | |