Loading t14/cannon.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -61,7 +61,7 @@ void CannonField::shoot() shoot_ang = ang; shoot_ang = ang; shoot_f = f; shoot_f = f; shooting = true; shooting = true; startTimer( 50 ); timerId = startTimer( 50 ); } } void CannonField::newTarget() void CannonField::newTarget() Loading Loading @@ -170,7 +170,7 @@ void CannonField::mouseReleaseEvent( QMouseEvent *e ) void CannonField::stopShooting() void CannonField::stopShooting() { { shooting = false; shooting = false; killTimers(); killTimer(timerId); } } void CannonField::paintShot( QPainter *p ) void CannonField::paintShot( QPainter *p ) Loading t14/cannon.h +1 −0 Original line number Original line Diff line number Diff line Loading @@ -55,6 +55,7 @@ private: bool shooting; bool shooting; int timerCount; int timerCount; int timerId; float shoot_ang; float shoot_ang; float shoot_f; float shoot_f; Loading Loading
t14/cannon.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -61,7 +61,7 @@ void CannonField::shoot() shoot_ang = ang; shoot_ang = ang; shoot_f = f; shoot_f = f; shooting = true; shooting = true; startTimer( 50 ); timerId = startTimer( 50 ); } } void CannonField::newTarget() void CannonField::newTarget() Loading Loading @@ -170,7 +170,7 @@ void CannonField::mouseReleaseEvent( QMouseEvent *e ) void CannonField::stopShooting() void CannonField::stopShooting() { { shooting = false; shooting = false; killTimers(); killTimer(timerId); } } void CannonField::paintShot( QPainter *p ) void CannonField::paintShot( QPainter *p ) Loading
t14/cannon.h +1 −0 Original line number Original line Diff line number Diff line Loading @@ -55,6 +55,7 @@ private: bool shooting; bool shooting; int timerCount; int timerCount; int timerId; float shoot_ang; float shoot_ang; float shoot_f; float shoot_f; Loading