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

List:       kde-commits
Subject:    KDE/kdegames/libkdegames
From:       Stefan Majewsky <majewsky () gmx ! net>
Date:       2011-01-01 20:52:23
Message-ID: 20110101205223.544B7AC8AE () svn ! kde ! org
[Download RAW message or body]

SVN commit 1210708 by majewsky:

Fix frame normalization for animated sprites with only one frame.

This fixes a problem in Bomber: The bomb was not displayed because frame no. 0
was incorrectly normalized to -1. I wonder why this did not affect the plane as
well, which is also a one-frame animated sprite.

 M  +1 -1      kgamerendererclient.cpp  


--- trunk/KDE/kdegames/libkdegames/kgamerendererclient.cpp #1210707:1210708
@@ -78,7 +78,7 @@
 	{
 		//do some normalization ourselves
 		const int frameCount = this->frameCount();
-		if (frameCount <= 0 || frame <= 0)
+		if (frameCount <= 0 || frame < 0)
 		{
 			frame = -1;
 		}
[prev in list] [next in list] [prev in thread] [next in thread] 

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