From 16689da57132292db77a84bff9cc4856fa85c199 Mon Sep 17 00:00:00 2001 From: TheRandomMelon Date: Sun, 8 Jan 2017 13:35:24 -0600 Subject: Fixed bug where you could type while story is happening --- ShiftOS.WinForms/Applications/Terminal.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ShiftOS.WinForms/Applications') diff --git a/ShiftOS.WinForms/Applications/Terminal.cs b/ShiftOS.WinForms/Applications/Terminal.cs index 9c8fca0..02a1f85 100644 --- a/ShiftOS.WinForms/Applications/Terminal.cs +++ b/ShiftOS.WinForms/Applications/Terminal.cs @@ -239,15 +239,18 @@ namespace ShiftOS.WinForms.Applications { a.SuppressKeyPress = true; } } - //( ͡° ͜ʖ ͡° ) You found the lennyface without looking at the commit message. Message Michael in the #shiftos channel on Discord saying "ladouceur" somewhere in your message if you see this. - else if (a.KeyCode == Keys.Up) { + //( ͡° ͜ʖ ͡° ) You found the lennyface without looking at the commit message. Message Michael in the #shiftos channel on Discord saying "ladouceur" somewhere in your message if you see this. + else if (a.KeyCode == Keys.Up) { var tostring3 = txt.Lines[txt.Lines.Length - 1]; if (tostring3 == $"{SaveSystem.CurrentSave.Username}@{SaveSystem.CurrentSave.SystemName}:~$ ") Console.Write(TerminalBackend.LastCommand); a.SuppressKeyPress = true; } else { - + if (TerminalBackend.InStory) + { + a.SuppressKeyPress = true; + } AppearanceManager.CurrentPosition++; } -- cgit v1.2.3