File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1163,8 +1163,15 @@ void Scene::pack(fge::net::Packet& pck)
1163
1163
}
1164
1164
void Scene::pack (fge::net::Packet& pck, fge::net::Identity const & id)
1165
1165
{
1166
- this ->g_perClientSyncs .emplace (std::piecewise_construct, std::forward_as_tuple (id),
1167
- std::forward_as_tuple (this ->g_updateCount ));
1166
+ auto result = this ->g_perClientSyncs .emplace (std::piecewise_construct, std::forward_as_tuple (id),
1167
+ std::forward_as_tuple (this ->g_updateCount ));
1168
+ if (!result.second )
1169
+ {
1170
+ result.first ->second ._lastUpdateCount = this ->g_updateCount ;
1171
+ std::queue<SceneNetEvent>().swap (result.first ->second ._networkEvents );
1172
+ this ->forceUncheckClient (id);
1173
+ }
1174
+
1168
1175
this ->pack (pck);
1169
1176
}
1170
1177
std::optional<fge::net::Error> Scene::unpack (fge::net::Packet const & pck)
You can’t perform that action at this time.
0 commit comments