- adjustments

This commit is contained in:
Christoph Oelckers 2019-11-07 20:30:56 +01:00
parent e4735fdff1
commit d2cbd71dbf
3 changed files with 4 additions and 5 deletions

View file

@ -1326,13 +1326,13 @@ void C_ToggleConsole ()
HistPos = NULL; HistPos = NULL;
TabbedLast = false; TabbedLast = false;
TabbedList = false; TabbedList = false;
GUICapture++; GUICapture |= 1;
} }
else //if (gamestate != GS_FULLCONSOLE && gamestate != GS_STARTUP) else //if (gamestate != GS_FULLCONSOLE && gamestate != GS_STARTUP)
{ {
ConsoleState = c_rising; ConsoleState = c_rising;
C_FlushDisplay (); C_FlushDisplay ();
GUICapture--; GUICapture &= ~1;
} }
} }

View file

@ -68,7 +68,7 @@ static bool UncompressZipLump(char *Cache, FileReader &Reader, int Method, int L
case METHOD_LZMA: case METHOD_LZMA:
{ {
FileReader frz; FileReader frz;
if (frz.OpenDecompressor(Reader, LumpSize, Method, false, [](const char* err) { throw std::runtime_error(err); })) if (frz.OpenDecompressor(Reader, LumpSize, Method, false, [](const char* err) { I_Error("%s", err); }))
{ {
frz.Read(Cache, LumpSize); frz.Read(Cache, LumpSize);
} }

View file

@ -92,8 +92,7 @@ bool FShader::Load(const char * name, const char * vert_prog, const char * frag_
if (linked == 0) if (linked == 0)
{ {
// only print message if there's an error. // only print message if there's an error.
FStringf err("Init Shader '%s':\n%s\n", name, error.GetChars()); I_Error("Init Shader '%s':\n%s\n", name, error.GetChars());
throw std::runtime_error(err); // Failing to compile a shader is fatal.
} }
return true; return true;
} }