From 34c5334436aefe780e91e41ab6d3e9c07c62dc6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Sun, 13 Jan 2013 01:50:17 -0300 Subject: [PATCH] Minor fix. --- projects/linux/ee.creator.user | 4 ++-- src/eepp/gaming/cobjectlayer.cpp | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/projects/linux/ee.creator.user b/projects/linux/ee.creator.user index bb1255150..c044376ec 100644 --- a/projects/linux/ee.creator.user +++ b/projects/linux/ee.creator.user @@ -1,6 +1,6 @@ - + ProjectExplorer.Project.ActiveTarget @@ -48,7 +48,7 @@ Desktop Desktop {388e5431-b31b-42b3-b9ad-9002d279d75d} - 0 + 11 0 0 diff --git a/src/eepp/gaming/cobjectlayer.cpp b/src/eepp/gaming/cobjectlayer.cpp index 46ec7ce42..04804d48c 100644 --- a/src/eepp/gaming/cobjectlayer.cpp +++ b/src/eepp/gaming/cobjectlayer.cpp @@ -49,7 +49,9 @@ void cObjectLayer::Draw( const eeVector2f &Offset ) { for ( it = mObjects.begin(); it != mObjects.end(); it++ ) { cGameObject * Obj = (*it); - Tex->DrawEx( Obj->Pos().x, Obj->Pos().y, Obj->Size().Width(), Obj->Size().Height(), 0, 1, Col, Col, Col, Col ); + if ( Obj->Blocked() ) { + Tex->DrawEx( Obj->Pos().x, Obj->Pos().y, Obj->Size().Width(), Obj->Size().Height(), 0, 1, Col, Col, Col, Col ); + } } }