1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

* hero placed in the town starts as visiting hero, not garrisoned

* if hero doesn't have a spell book, he can buy one in a mage guild
* improvements in closing
* fixed crash on picking artifact
* added event message when picking artifact
* fixed problems with disappearing pikemen
* InfoWindow will be properly centered
* hero portraits again visible in PreGame
* fixed problems with handling Pandora's Box
* support for Campfires
* minor changes
This commit is contained in:
Michał W. Urbańczyk
2008-08-25 10:25:16 +00:00
parent 0607ec70cf
commit 6613955463
34 changed files with 271 additions and 165 deletions

View File

@@ -79,14 +79,21 @@ int CConnection::read(void * data, unsigned size)
}
CConnection::~CConnection(void)
{
if(socket)
socket->close();
delete socket;
close();
delete io_service;
delete wmx;
delete rmx;
}
void CConnection::close()
{
if(socket)
{
socket->close();
delete socket;
socket = NULL;
}
}
template <>
void CConnection::saveSerializable<std::string>(const std::string &data)
{