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

QWMatrix is now QMatrix

parent 8eaa9b90
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) );
}