fixed snakey crashing bug

This commit is contained in:
lempamo 2017-02-28 12:11:40 -05:00
parent 52b9cd9c80
commit 8656337c5d
2 changed files with 1 additions and 1 deletions

View file

@ -134,7 +134,6 @@ namespace ShiftOS.WinForms.Applications
buttonE.Enabled = false;
buttonM.Enabled = false;
buttonH.Enabled = false;
gameplayed = true;
makegrid();
}

View file

@ -155,6 +155,7 @@ namespace ShiftOS.WinForms.Applications
clearGame();
makeGrid();
}
snakemap = new int[10, 10];
snakemap[5, 5] = 2;
tableLayoutPanel1.GetControlFromPosition(5, 5).BackgroundImage = Properties.Resources.SnakeyHeadL;
for (int x = 6; x < 8; x++)