Skip to content
Snippets Groups Projects
Commit 7bd6a636 authored by Paul Tvete's avatar Paul Tvete
Browse files

QWMatrix is now QMatrix

parent 8eaa9b90
No related branches found
No related tags found
No related merge requests found
......@@ -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) );
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment