1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-13 01:20:34 +02:00

* partial handling of advmap objects changing battle background (like clover field) (their existence should change the background but nothing else)

* map should be drawn faster because empty tiles are no more blitted (according to info from .msk files) - I hope it will work correctly, if not please report or turn it off if too hard to make it work
This commit is contained in:
mateuszb
2009-07-01 15:58:20 +00:00
parent 824061e185
commit 50a49460bf
7 changed files with 64 additions and 28 deletions

View File

@ -186,6 +186,14 @@ bool CGObjectInstance::blockingAt(int x, int y) const
return true;
return false;
}
bool CGObjectInstance::coveringAt(int x, int y) const
{
if((defInfo->coverageMap[y] >> (7-(x) )) & 1)
return true;
return false;
}
bool CGObjectInstance::operator<(const CGObjectInstance & cmp) const //screen printing priority comparing
{
if(defInfo->printPriority==1 && cmp.defInfo->printPriority==0)