|
@@ -250,10 +250,6 @@ void SpielDaten::Loader::thread()
|
|
|
pf->insert( 0, "data/spiele/" );
|
|
|
if( !pf->hat( ".ltdb/" ) )
|
|
|
{
|
|
|
- hauptScreen->lock();
|
|
|
- if( sd->aAnimation )
|
|
|
- sd->aAnimation = sd->aAnimation->release();
|
|
|
- hauptScreen->unlock();
|
|
|
LTDBDatei *add = new LTDBDatei();
|
|
|
add->setDatei( pf->getThis() );
|
|
|
add->leseDaten( 0 );
|
|
@@ -261,7 +257,11 @@ void SpielDaten::Loader::thread()
|
|
|
ad->ladeAnimation( add );
|
|
|
ad->setWiederhohlend( 1 );
|
|
|
ad->setFPS( 30 );
|
|
|
+ hauptScreen->lock();
|
|
|
+ if( sd->aAnimation )
|
|
|
+ sd->aAnimation = sd->aAnimation->release();
|
|
|
sd->aAnimation = new Animation2D();
|
|
|
+ hauptScreen->unlock();
|
|
|
sd->aAnimation->setSize( 200, 100 );
|
|
|
sd->aAnimation->setPosition( 0, 0 );
|
|
|
sd->aAnimation->setAnimationDataZ( ad );
|