summaryrefslogtreecommitdiffstats
path: root/kolf/ball.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kolf/ball.cpp')
-rw-r--r--kolf/ball.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kolf/ball.cpp b/kolf/ball.cpp
index 569a5ba2..0e25422b 100644
--- a/kolf/ball.cpp
+++ b/kolf/ball.cpp
@@ -308,10 +308,10 @@ void Ball::collisionDetect(double oldx, double oldy)
for (iterpoint = points.first(); iterpoint; iterpoint = points.next())
{
//kdDebug(12007) << "-----\n";
- const Wall *tqparentWall = iterpoint->tqparentWall();
- const TQPoint qp(iterpoint->x() + tqparentWall->x(), iterpoint->y() + tqparentWall->y());
+ const Wall *parentWall = iterpoint->parentWall();
+ const TQPoint qp(iterpoint->x() + parentWall->x(), iterpoint->y() + parentWall->y());
const Point p(qp.x(), qp.y());
- const TQPoint qother = TQPoint(tqparentWall->startPoint() == qp? tqparentWall->endPoint() : tqparentWall->startPoint()) + TQPoint(tqparentWall->x(), tqparentWall->y());
+ const TQPoint qother = TQPoint(parentWall->startPoint() == qp? parentWall->endPoint() : parentWall->startPoint()) + TQPoint(parentWall->x(), parentWall->y());
const Point other(qother.x(), qother.y());
// vector of wall