… | |
… | |
345 | else |
345 | else |
346 | { |
346 | { |
347 | // maybe there is a player standing on the same mapspace |
347 | // maybe there is a player standing on the same mapspace |
348 | // this will catch the case where "this" is a player |
348 | // this will catch the case where "this" is a player |
349 | if (object *pl = ms ().player ()) |
349 | if (object *pl = ms ().player ()) |
|
|
350 | if ((!pl->container && pl->contr->ns && !pl->contr->ns->update_look) |
350 | if (!pl->container || this == pl->container) |
351 | || this == pl->container) |
351 | return pl; |
352 | return pl; |
352 | } |
353 | } |
353 | } |
354 | } |
354 | |
355 | |
355 | return 0; |
356 | return 0; |
… | |
… | |
909 | || map->in_memory != MAP_ACTIVE |
910 | || map->in_memory != MAP_ACTIVE |
910 | || map->no_drop |
911 | || map->no_drop |
911 | || ms ().move_block == MOVE_ALL) |
912 | || ms ().move_block == MOVE_ALL) |
912 | { |
913 | { |
913 | while (inv) |
914 | while (inv) |
914 | { |
|
|
915 | inv->destroy_inv (false); |
|
|
916 | inv->destroy (); |
915 | inv->destroy (true); |
917 | } |
|
|
918 | } |
916 | } |
919 | else |
917 | else |
920 | { /* Put objects in inventory onto this space */ |
918 | { /* Put objects in inventory onto this space */ |
921 | while (inv) |
919 | while (inv) |
922 | { |
920 | { |
… | |
… | |
1550 | |
1548 | |
1551 | return true; |
1549 | return true; |
1552 | } |
1550 | } |
1553 | else |
1551 | else |
1554 | { |
1552 | { |
1555 | destroy (1); |
1553 | destroy (); |
1556 | return false; |
1554 | return false; |
1557 | } |
1555 | } |
1558 | } |
1556 | } |
1559 | |
1557 | |
1560 | /* |
1558 | /* |