Commit 7bd6a636 authored by Paul Tvete's avatar Paul Tvete

QWMatrix is now QMatrix

parent 8eaa9b90
......@@ -258,9 +258,9 @@ QRect CannonField::barrierRect() const
bool CannonField::barrelHit( const QPoint &p ) const
{
QWMatrix mtx;
QMatrix mtx;
mtx.translate( 0, height() - 1 );
mtx.rotate( -ang );
mtx = mtx.invert();
mtx = mtx.inverted();
return barrel_rect.contains( mtx.map(p) );
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment