… | |
… | |
32 | #include <bitset> |
32 | #include <bitset> |
33 | |
33 | |
34 | UUID UUID::cur; |
34 | UUID UUID::cur; |
35 | static uint64_t seq_next_save; |
35 | static uint64_t seq_next_save; |
36 | static const uint64 UUID_GAP = 1<<19; |
36 | static const uint64 UUID_GAP = 1<<19; |
|
|
37 | uint32_t mapspace::smellcount; |
37 | |
38 | |
38 | objectvec objects; |
39 | objectvec objects; |
39 | activevec actives; |
40 | activevec actives; |
40 | |
41 | |
41 | short freearr_x[SIZEOFFREE] = { |
42 | short freearr_x[SIZEOFFREE] = { |
… | |
… | |
1096 | |
1097 | |
1097 | if (object *pl = ms.player ()) |
1098 | if (object *pl = ms.player ()) |
1098 | { |
1099 | { |
1099 | if (is_player ()) |
1100 | if (is_player ()) |
1100 | { |
1101 | { |
1101 | ms.smell = pticks; // remember the smell of the player |
1102 | ms.smell = ++mapspace::smellcount; // remember the smell of the player |
1102 | |
1103 | |
1103 | // leaving a spot always closes any open container on the ground |
1104 | // leaving a spot always closes any open container on the ground |
1104 | if (container && !container->env) |
1105 | if (container && !container->env) |
1105 | // this causes spurious floorbox updates, but it ensures |
1106 | // this causes spurious floorbox updates, but it ensures |
1106 | // that the CLOSE event is being sent. |
1107 | // that the CLOSE event is being sent. |