mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Mod compatibility check is now in a separate class and not part of
ModHandler
This commit is contained in:
@@ -74,6 +74,10 @@ std::string CMapHandler::getTerrainDescr(const int3 & pos, bool rightClick) cons
|
||||
|
||||
bool CMapHandler::compareObjectBlitOrder(const CGObjectInstance * a, const CGObjectInstance * b)
|
||||
{
|
||||
//FIXME: Optimize
|
||||
// this method is called A LOT on game start and some parts, e.g. for loops are too slow for that
|
||||
|
||||
assert(a && b);
|
||||
if(!a)
|
||||
return true;
|
||||
if(!b)
|
||||
|
||||
Reference in New Issue
Block a user