… | |
… | |
1097 | |
1097 | |
1098 | if (object *pl = ms.player ()) |
1098 | if (object *pl = ms.player ()) |
1099 | { |
1099 | { |
1100 | if (is_player ()) |
1100 | if (is_player ()) |
1101 | { |
1101 | { |
|
|
1102 | if (!flag [FLAG_WIZPASS]) |
1102 | ms.smell = ++mapspace::smellcount; // remember the smell of the player |
1103 | ms.smell = ++mapspace::smellcount; // remember the smell of the player |
1103 | |
1104 | |
1104 | // leaving a spot always closes any open container on the ground |
1105 | // leaving a spot always closes any open container on the ground |
1105 | if (container && !container->env) |
1106 | if (container && !container->env) |
1106 | // this causes spurious floorbox updates, but it ensures |
1107 | // this causes spurious floorbox updates, but it ensures |
1107 | // that the CLOSE event is being sent. |
1108 | // that the CLOSE event is being sent. |