1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Fix corrupted shadow on ship image in shipyard

This commit is contained in:
Ivan Savenko 2024-09-13 13:42:27 +00:00
parent 626c34a105
commit bc9937e72c
2 changed files with 3 additions and 2 deletions

View File

@ -744,8 +744,9 @@ CShipyardWindow::CShipyardWindow(const TResources & cost, int state, BoatId boat
AnimationPath boatFilename = boatConstructor->getBoatAnimationName();
Point waterCenter = Point(bgWater->pos.x+bgWater->pos.w/2, bgWater->pos.y+bgWater->pos.h/2);
bgShip = std::make_shared<CAnimImage>(boatFilename, 0, 7, 120, 96, 0);
bgShip = std::make_shared<CShowableAnim>(120, 96, boatFilename, CShowableAnim::CREATURE_MODE, 100, 7);
bgShip->center(waterCenter);
bgWater->needRefresh = true;
}
// Create resource icons and costs.

View File

@ -296,7 +296,7 @@ public:
class CShipyardWindow : public CStatusbarWindow
{
std::shared_ptr<CPicture> bgWater;
std::shared_ptr<CAnimImage> bgShip;
std::shared_ptr<CShowableAnim> bgShip;
std::shared_ptr<CLabel> title;
std::shared_ptr<CLabel> costLabel;