From d1edfcf70591c8ba08672d96a75fcec70e88ef86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Tue, 21 Mar 2017 15:36:41 -0300 Subject: [PATCH] Never search for sprites unless it's explicitly requested. --HG-- branch : dev --- src/eepp/graphics/drawablesearcher.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/eepp/graphics/drawablesearcher.cpp b/src/eepp/graphics/drawablesearcher.cpp index 1742911df..b6ad83ba5 100644 --- a/src/eepp/graphics/drawablesearcher.cpp +++ b/src/eepp/graphics/drawablesearcher.cpp @@ -69,18 +69,6 @@ Drawable * DrawableSearcher::searchById( const Uint32& id ) { drawable = TextureFactory::instance()->getByHash( id ); } - if ( NULL == drawable ) { - std::vector tSubTextureVec = TextureAtlasManager::instance()->getSubTexturesByPatternId( id ); - - if ( tSubTextureVec.size() ) { - Sprite * tSprite = eeNew( Graphics::Sprite, () ); - tSprite->createAnimation(); - tSprite->addFrames( tSubTextureVec ); - - drawable = tSprite; - } - } - if ( NULL == drawable && sPrintWarnings ) eePRINTL( "DrawableSearcher::searchById: \"%ld\" not found", id );