Add numbers

This commit is contained in:
Marvin Rohrbach
2018-05-25 11:30:18 +02:00
parent 36adef58f2
commit 002a851fc2
2 changed files with 4 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ namespace CoopSweeper
case ConsoleKey.Spacebar:
game.Reveal(cursorPosX, cursorPosY); break;
case ConsoleKey.F:
game.SetFlag(cursorPosX, cursorPosY); break;
game.ToggleMark(cursorPosX, cursorPosY); break;
}
if (cursorPosX < 0) cursorPosX = 0;
if (cursorPosY < 0) cursorPosY = 0;
@@ -87,7 +87,7 @@ namespace CoopSweeper
case DisplayState.NUMBER8:
fgChanged = true;
Console.ForegroundColor = ConsoleColor.Yellow;
c = state.ToString()[0];
c = ((int)state).ToString()[0];
break;
}
if (isCursor)