mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Removed pointer to army from StackInstance
This commit is contained in:
@@ -119,24 +119,11 @@ std::shared_ptr<INetworkConnection> CConnection::getConnection()
|
||||
return networkConnection.lock();
|
||||
}
|
||||
|
||||
void CConnection::disableStackSendingByID()
|
||||
{
|
||||
packReader->sendStackInstanceByIds = false;
|
||||
packWriter->sendStackInstanceByIds = false;
|
||||
}
|
||||
|
||||
void CConnection::enableStackSendingByID()
|
||||
{
|
||||
packReader->sendStackInstanceByIds = true;
|
||||
packWriter->sendStackInstanceByIds = true;
|
||||
}
|
||||
|
||||
void CConnection::enterLobbyConnectionMode()
|
||||
{
|
||||
deserializer->loadedPointers.clear();
|
||||
serializer->savedPointers.clear();
|
||||
disableSmartVectorMemberSerialization();
|
||||
disableStackSendingByID();
|
||||
}
|
||||
|
||||
void CConnection::setCallback(IGameCallback * cb)
|
||||
@@ -146,8 +133,6 @@ void CConnection::setCallback(IGameCallback * cb)
|
||||
|
||||
void CConnection::enterGameplayConnectionMode(CGameState * gs)
|
||||
{
|
||||
enableStackSendingByID();
|
||||
|
||||
setCallback(gs->callback);
|
||||
enableSmartVectorMemberSerializatoin(gs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user