[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegames/kpat/libkcardgame
From:       Parker Coates <parker.coates () kdemail ! net>
Date:       2011-01-08 16:51:27
Message-ID: 20110108165127.DA7CDAC8B0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1212927 by coates:

Fix a pile spacing issue with flipCardToPileAtSpeed.

Face up cards are given different offsets than face down cards, so we
need to be sure that the we check the final position of the card with
the correct face-up-ness.

BUG:262498

 M  +1 -0      kcardscene.cpp  


--- trunk/KDE/kdegames/kpat/libkcardgame/kcardscene.cpp #1212926:1212927
@@ -744,6 +744,7 @@
     bool origFaceUp = card->isFaceUp();
 
     QPointF estimatedDestPos = pile->isEmpty() ? pile->pos() : pile->top()->pos();
+    card->setFaceUp( !origFaceUp );
     moveCardToPile( card, pile, d->calculateDuration( origPos, estimatedDestPos, velocity ) );
 
     card->completeAnimation();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic