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

List:       kde-commits
Subject:    KDE/kdegames/kolf
From:       Stefan Majewsky <majewsky () gmx ! net>
Date:       2010-11-16 21:03:27
Message-ID: 20101116210327.5C1F5AC8A0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1197869 by majewsky:

Fix Z ordering of border walls.

They are now affixed at the currently unreachable strut level 100 because the
existence of border walls most likely means that no ball shall be allowed to
leave the course.

 M  +3 -0      game.cpp  
 M  +1 -0      obstacles.cpp  


--- trunk/KDE/kdegames/kolf/game.cpp #1197868:1197869
@@ -680,6 +680,9 @@
 	wall->setLine(QLineF(start, end));
 	wall->setVisible(true);
 	wall->setGame(this);
+	//change Z value to something very high so that border walls
+	//really keep the balls inside the course
+	wall->setZBehavior(CanvasItem::FixedZValue, 10000);
 	borderWalls.append(wall);
 }
 
--- trunk/KDE/kdegames/kolf/obstacles.cpp #1197868:1197869
@@ -81,6 +81,7 @@
 {
 	setPen(QPen(Qt::darkRed, 3));
 	setData(0, Rtti_NoCollision);
+	//see also KolfGame::addBorderWall()
 	setZBehavior(CanvasItem::FixedZValue, 5);
 
 	m_shape = new Kolf::LineShape(line());
[prev in list] [next in list] [prev in thread] [next in thread] 

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