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

REMOVED FILES: CPatgFinder.h/cpp

Updated project files for MSVC and automake (I hope I didn't break it)
* Refactored pathfinding and integrated into CGameState. 
* Fixed issues with wrong calculating movement cost at server side
* Hero infowindow won't be redrawed each time experience changes
* Removed memory leaks with CPaths-s
* Support for Sign objects
* Bumped savegame formt version to ensure old not compatible saves won't be readed
* Spellscrolls will disappear on visit (won't be treated as spellbooks anymore)
This commit is contained in:
Michał W. Urbańczyk
2009-03-19 14:17:19 +00:00
parent a0057c5014
commit 516b1e2b00
22 changed files with 299 additions and 344 deletions

View File

@@ -112,15 +112,18 @@ void CClient::run()
CPack *pack;
while(1)
{
tlog5 << "Listening... ";
*serv >> pack;
tlog5 << "Received server message of type " << typeid(*pack).name() << std::endl;
tlog5 << "\treceived server message of type " << typeid(*pack).name() << std::endl;
CBaseForCLApply *apply = applier->apps[typeList.getTypeID(pack)];
if(apply)
{
apply->applyOnClBefore(this,pack);
tlog5 << "\tMade first apply on cl\n";
gs->apply(pack);
tlog5 << "\tApplied on gs\n";
apply->applyOnClAfter(this,pack);
tlog5 << "Message successfully applied!\n";
tlog5 << "\tMade second apply on cl\n";
}
else
{
@@ -171,7 +174,7 @@ void CClient::load( const std::string & fname )
for(std::map<ui8,CGameInterface *>::iterator i = playerint.begin(); i!=playerint.end(); i++)
{
delete i->second; //delete player interfaces
}
}
tlog0 <<"Deleting old data: "<<tmh.getDif()<<std::endl;
char portc[10];