From 8c808568f9d1087e1146d281bb3a63b543b43108 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 7 Oct 2015 02:35:22 -0400 Subject: enemy.vim: Add descriptive comment to DropEnemyAtRandomCoordinates Explain the while loop and condition here better than the code explains it. --- autoload/space_vlaze/enemy.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/space_vlaze/enemy.vim b/autoload/space_vlaze/enemy.vim index 377c803..51bf14d 100644 --- a/autoload/space_vlaze/enemy.vim +++ b/autoload/space_vlaze/enemy.vim @@ -43,6 +43,7 @@ function! space_vlaze#enemy#DropEnemyAtRandomCoordinates() let y = player_y let x = player_x + " Don't drop enemy at the same coordinates as the player while player_y ==# y && player_x ==# x let y = space_vlaze#random#Random(space_vlaze#game#BoardHeight() - 1) let x = space_vlaze#random#Random(space_vlaze#game#BoardWidth() - 1) -- cgit v1.2.3