Loading t14/cannon.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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) ); } Loading
t14/cannon.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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) ); }