aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/space_vlaze
diff options
context:
space:
mode:
authorTeddy Wing2015-10-04 23:47:33 -0400
committerTeddy Wing2015-10-04 23:47:33 -0400
commit08bd09f0e6757412135e9e2b41a4644ab364ded9 (patch)
tree8c2af859ffa3098ee9392aac516c779c4ced99db /autoload/space_vlaze
parent41664c76599332c7bec59d641151d4155be26364 (diff)
downloadvim-space-vlaze-08bd09f0e6757412135e9e2b41a4644ab364ded9.tar.bz2
missile.vim: Clear missile when it gets to edge of board
Remove missiles when they get to the end of the board. Otherwise they just stay there right before the end.
Diffstat (limited to 'autoload/space_vlaze')
-rw-r--r--autoload/space_vlaze/missile.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/space_vlaze/missile.vim b/autoload/space_vlaze/missile.vim
index 68c4e24..6c94ca2 100644
--- a/autoload/space_vlaze/missile.vim
+++ b/autoload/space_vlaze/missile.vim
@@ -33,9 +33,9 @@ function! space_vlaze#missile#Move(y, x, direction)
let y -= 1
endif
+ call space_vlaze#missile#ClearMissile(a:y, a:x)
+
if space_vlaze#game#IsBoardCellEmpty(y, x)
- call space_vlaze#missile#ClearMissile(a:y, a:x)
-
call space_vlaze#game#SetBoardCell(
\ y,
\ x,