From 1fb2b6099922d145e363865bb3b4a5771439f796 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Tue, 20 Jun 2023 23:15:42 +0300 Subject: [PATCH] Remove no longer relevant check --- lib/mapObjectConstructors/CommonConstructors.cpp | 9 --------- lib/mapObjectConstructors/CommonConstructors.h | 1 - 2 files changed, 10 deletions(-) diff --git a/lib/mapObjectConstructors/CommonConstructors.cpp b/lib/mapObjectConstructors/CommonConstructors.cpp index cef36448e..4a21d8825 100644 --- a/lib/mapObjectConstructors/CommonConstructors.cpp +++ b/lib/mapObjectConstructors/CommonConstructors.cpp @@ -165,15 +165,6 @@ std::string BoatInstanceConstructor::getBoatAnimationName() const return actualAnimation; } -void BoatInstanceConstructor::afterLoadFinalization() -{ - if (layer == EPathfindingLayer::SAIL) - { - if (getTemplates(TerrainId(ETerrainId::WATER)).empty()) - logMod->warn("Boat of type %s has no templates suitable for water!", getJsonKey()); - } -} - void MarketInstanceConstructor::initTypeData(const JsonNode & input) { for(auto & element : input["modes"].Vector()) diff --git a/lib/mapObjectConstructors/CommonConstructors.h b/lib/mapObjectConstructors/CommonConstructors.h index 7144596e6..4a58d699e 100644 --- a/lib/mapObjectConstructors/CommonConstructors.h +++ b/lib/mapObjectConstructors/CommonConstructors.h @@ -97,7 +97,6 @@ protected: public: void initializeObject(CGBoat * object) const override; - void afterLoadFinalization() override; /// Returns boat preview animation, for use in Shipyards std::string getBoatAnimationName() const;