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

Fixes for exchange window in non 800x600 res

Minor improvements and fixes.
This commit is contained in:
Michał W. Urbańczyk
2009-07-27 17:55:56 +00:00
parent aad61c8ac8
commit 25663d2605
7 changed files with 28 additions and 14 deletions

View File

@@ -7,6 +7,7 @@
#include <zlib.h>
#include <boost/crc.hpp>
#include "../hch/CLodHandler.h"
#include <boost/bind.hpp>
/*
* map.cpp, part of VCMI engine
@@ -1906,6 +1907,8 @@ void Mapa::readObjects( unsigned char * bufor, int &i)
if(nobj->ID==HEROI_TYPE)
heroes.push_back(static_cast<CGHeroInstance*>(nobj));
}
std::sort(heroes.begin(), heroes.end(), boost::bind(&CGHeroInstance::subID, _1) < boost::bind(&CGHeroInstance::subID, _2));
}
void Mapa::readEvents( unsigned char * bufor, int &i )