Erase multiple objects from net list now works from client to server
This commit is contained in:
parent
266d0b9127
commit
94758aaee4
2 changed files with 5 additions and 1 deletions
|
|
@ -433,7 +433,7 @@ namespace NetworkingObjects {
|
|||
this->call_erase_callback(clientData[indexToErase]);
|
||||
clientData.erase(clientData.begin() + indexToErase);
|
||||
}
|
||||
l.send_server_update_to_all_clients(RELIABLE_COMMAND_CHANNEL, [&ids](const NetObjTemporaryPtr<NetObjOrderedList<T>>&, cereal::PortableBinaryOutputArchive& a) {
|
||||
l.send_client_update(RELIABLE_COMMAND_CHANNEL, [&ids](const NetObjTemporaryPtr<NetObjOrderedList<T>>&, cereal::PortableBinaryOutputArchive& a) {
|
||||
a(ObjPtrOrderedListCommand_CtoS::ERASE_MANY, ids);
|
||||
});
|
||||
set_positions_for_object_info_vector<T>(clientData, indicesToErase.front());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue