Fix automatic reveal on restart
This commit is contained in:
@@ -33,7 +33,7 @@ namespace CoopSweeper
|
||||
StartNewGame(game, cursorPosX, cursorPosY);
|
||||
};
|
||||
ConsoleKey key = (ConsoleKey)(-1);
|
||||
do
|
||||
while ((key = Console.ReadKey().Key) != ConsoleKey.Escape)
|
||||
{
|
||||
var oldCursorPosX = cursorPosX;
|
||||
var oldCursorPosY = cursorPosY;
|
||||
@@ -70,7 +70,7 @@ namespace CoopSweeper
|
||||
}
|
||||
Console.SetCursorPosition(0, 0);
|
||||
Console.CursorVisible = false;
|
||||
} while ((key = Console.ReadKey().Key) != ConsoleKey.Escape);
|
||||
}
|
||||
}
|
||||
|
||||
private static void DrawChar(IField f, bool isCursor)
|
||||
|
||||
Reference in New Issue
Block a user