better instance logging support

This commit is contained in:
alzeih
2010-07-11 18:42:27 +12:00
committed by Paul Chote
parent d0d3f1434e
commit 7d18937415
2 changed files with 18 additions and 10 deletions

View File

@@ -626,7 +626,11 @@ namespace OpenRA
public static void Exit() { quit = true; }
public static void Debug(string s) { Chrome.chatWidget.AddLine(Color.White, "Debug", s); }
public static void Debug(string s)
{
if (Chrome.chatWidget != null)
Chrome.chatWidget.AddLine(Color.White, "Debug", s);
}
public static void Disconnect()
{