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:
@ -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)
|
||||
|
Reference in New Issue
Block a user