Permalink
Browse files

If smash isn't visible, oops

  • Loading branch information...
1 parent 2187a2e commit 1fba857587d65b68e546aa7ab1812954483e651d @gja committed Feb 2, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 game.cpp
View
@@ -27,7 +27,7 @@ GoferSmash::GoferSmash(QWidget *parent): QGraphicsView(parent), scene(NULL), boa
void GoferSmash::mousePressEvent(QMouseEvent *event)
{
- if (! smash->isUnderMouse() )
+ if (! smash->isUnderMouse() || state != SmashVisible)
return;
state = SmashInProgress;

0 comments on commit 1fba857

Please sign in to comment.