mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
First part of Boat and sailing support.
[It's possible to enter the boat and move by sea, graphical glitches removal and disembarking will be done soon]
This commit is contained in:
@ -784,7 +784,9 @@ void CMapHandler::terrainRect(int3 top_tile, unsigned char anim, std::vector< st
|
||||
SDL_Surface * tb;
|
||||
if(themp->type==NULL)
|
||||
continue;
|
||||
std::vector<Cimage> & iv = graphics->heroAnims[themp->type->heroType]->ourImages;
|
||||
std::vector<Cimage> & iv = (themp->boat)
|
||||
? graphics->boatAnims[themp->boat->subID]->ourImages
|
||||
: graphics->heroAnims[themp->type->heroType]->ourImages;
|
||||
|
||||
if(!themp->isStanding) //hero is moving
|
||||
{
|
||||
|
Reference in New Issue
Block a user