mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
* partially fixed problems with boats
* minor changes
This commit is contained in:
@@ -464,9 +464,9 @@ static void processDef (CGDefInfo* def)
|
||||
}
|
||||
void CMapHandler::initHeroDef(CGHeroInstance * h)
|
||||
{
|
||||
h->defInfo->handler = graphics->flags1[0];
|
||||
h->defInfo->width = h->defInfo->handler->ourImages[0].bitmap->w/32;
|
||||
h->defInfo->height = h->defInfo->handler->ourImages[0].bitmap->h/32;
|
||||
//h->defInfo->handler = graphics->flags1[0];
|
||||
//h->defInfo->width = h->defInfo->handler->ourImages[0].bitmap->w/32;
|
||||
//h->defInfo->height = h->defInfo->handler->ourImages[0].bitmap->h/32;
|
||||
}
|
||||
void CMapHandler::init()
|
||||
{
|
||||
@@ -762,8 +762,11 @@ void CMapHandler::terrainRect(int3 top_tile, unsigned char anim, std::vector< st
|
||||
|
||||
for(int h=0; h < objects.size(); ++h)
|
||||
{
|
||||
//checking if object has non-empty graphic on this tile
|
||||
if(!objects[h].first->coveringAt(objects[h].first->pos.x - (top_tile.x + bx), top_tile.y + by - objects[h].first->pos.y + 5))
|
||||
continue;
|
||||
|
||||
//printing object
|
||||
SDL_Rect sr;
|
||||
|
||||
sr.x = srx;
|
||||
|
||||
Reference in New Issue
Block a user