… | |
… | |
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; |