Skip to content

Commit

Permalink
Fix invalid draw after died
Browse files Browse the repository at this point in the history
  • Loading branch information
gfx committed Mar 25, 2012
1 parent 9508941 commit a7be107
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shooting.dart
Expand Up @@ -109,6 +109,11 @@ class Status {
state = "gameover";
}
}
else {
return;
}

assert(image != null);
ctx.drawImage(image,
x - (Config.cellWidth >> 1),
y - (Config.cellHeight >> 1));
Expand Down

0 comments on commit a7be107

Please sign in to comment.