mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 23:26:15 +00:00
Removed yet another unused variable.
--HG-- branch : gsoc2014-dfighter
This commit is contained in:
parent
e7ded1f82c
commit
669c15eda9
1 changed files with 2 additions and 4 deletions
|
@ -269,7 +269,7 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
bool loadImage( TileConstants::TTileChannel channel, const QString &fn, bool empty = false )
|
bool loadImage( TileConstants::TTileChannel channel, const QString &fn )
|
||||||
{
|
{
|
||||||
QPixmap temp;
|
QPixmap temp;
|
||||||
bool b = temp.load( fn );
|
bool b = temp.load( fn );
|
||||||
|
@ -322,15 +322,13 @@ TileItemNode::~TileItemNode()
|
||||||
bool TileItemNode::setTileFilename(TileConstants::TTileChannel channel, QString filename)
|
bool TileItemNode::setTileFilename(TileConstants::TTileChannel channel, QString filename)
|
||||||
{
|
{
|
||||||
QString fn = filename;
|
QString fn = filename;
|
||||||
bool empty = false;
|
|
||||||
|
|
||||||
if( filename.isEmpty() || ( filename == "empty" ) )
|
if( filename.isEmpty() || ( filename == "empty" ) )
|
||||||
{
|
{
|
||||||
fn = ":/placeHolder/images/empty_image.png";
|
fn = ":/placeHolder/images/empty_image.png";
|
||||||
empty = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool b = pvt->loadImage( channel, fn, empty );
|
bool b = pvt->loadImage( channel, fn );
|
||||||
if( !b )
|
if( !b )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue