Killed a bunch of logging statements
This commit is contained in:
@@ -31,7 +31,6 @@ namespace OpenRA.FileFormats
|
||||
|
||||
public Stream GetContent(string filename)
|
||||
{
|
||||
Log.Write( "GetContent from folder: {0}", filename );
|
||||
try { return File.OpenRead( Path.Combine( path, filename ) ); }
|
||||
catch { return null; }
|
||||
}
|
||||
|
||||
@@ -55,7 +55,6 @@ namespace OpenRA
|
||||
|
||||
if (name != null)
|
||||
{
|
||||
//Log.Write("Loading {0}",name.ToLowerInvariant());
|
||||
Info = Rules.Info[name.ToLowerInvariant()];
|
||||
Health = this.GetMaxHP();
|
||||
|
||||
|
||||
@@ -67,7 +67,6 @@ namespace OpenRA
|
||||
|
||||
public void AddLine(Color c, string from, string text)
|
||||
{
|
||||
Log.Write( "Chat: {0}: {1}", from, text );
|
||||
recentLines.Add(Tuple.New(c, from, text));
|
||||
var eva = Game.world.WorldActor.Info.Traits.Get<EvaAlertsInfo>();
|
||||
Sound.Play(eva.ChatBeep);
|
||||
|
||||
@@ -835,8 +835,6 @@ namespace OpenRA
|
||||
paletteAnimationFrame++;
|
||||
else
|
||||
paletteAnimationFrame--;
|
||||
|
||||
Log.Write("{0}",paletteAnimationFrame);
|
||||
|
||||
// Calculate palette position
|
||||
if (paletteAnimationFrame <= paletteAnimationLength)
|
||||
|
||||
@@ -51,7 +51,6 @@ namespace OpenRA
|
||||
var widget = (Widget)mod.First.CreateInstance(fullTypeName);
|
||||
if (widget == null) continue;
|
||||
|
||||
Log.Write("Creating Widget of type {0}", widgetType);
|
||||
return widget;
|
||||
}
|
||||
|
||||
|
||||
@@ -77,11 +77,6 @@ namespace OpenRA
|
||||
foreach (var a in m.Assemblies)
|
||||
asms.Add(Pair.New(Assembly.LoadFile(Path.GetFullPath(a)), Path.GetFileNameWithoutExtension(a)));
|
||||
ModAssemblies = asms.ToArray();
|
||||
|
||||
foreach(var foo in ModAssemblies)
|
||||
{
|
||||
Log.Write("Tracking namespace {0} for reflection",foo.Second);
|
||||
}
|
||||
}
|
||||
|
||||
public static void ChangeMap(string mapName)
|
||||
|
||||
@@ -60,13 +60,11 @@ namespace OpenRA.Graphics
|
||||
foreach (XmlElement eSequence in eCursor.SelectNodes("./sequence"))
|
||||
cursors.Add(eSequence.GetAttribute("name"), new CursorSequence(cursorSrc, eSequence));
|
||||
|
||||
Log.Write("* LoadSequencesForCursor() done");
|
||||
}
|
||||
|
||||
static void LoadSequencesForUnit(XmlElement eUnit)
|
||||
{
|
||||
string unitName = eUnit.GetAttribute("name");
|
||||
// Log.Write("Loading sequence {0}", unitName);
|
||||
try {
|
||||
var sequences = eUnit.SelectNodes("./sequence").OfType<XmlElement>()
|
||||
.Select(e => new Sequence(unitName, e))
|
||||
|
||||
@@ -48,7 +48,6 @@ namespace OpenRA.Graphics
|
||||
lineRenderer = new LineRenderer(renderer);
|
||||
uiOverlay = new UiOverlay(spriteRenderer);
|
||||
palette = new HardwarePalette(renderer, world.Map);
|
||||
Log.Write("Created worldrenderer");
|
||||
}
|
||||
|
||||
public int GetPaletteIndex(string name)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#region Copyright & License Information
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford.
|
||||
* This file is part of OpenRA.
|
||||
@@ -41,7 +41,6 @@ namespace OpenRA.Traits
|
||||
if (info.Theatre == null ||
|
||||
info.Theatre.ToLowerInvariant() == self.World.Map.Theater.ToLowerInvariant())
|
||||
{
|
||||
Log.Write("Loading palette {0} from RGBA {1} {2} {3} {4}",info.Name,info.R,info.G,info.B,info.A);
|
||||
// TODO: This shouldn't rely on a base palette
|
||||
var wr = self.World.WorldRenderer;
|
||||
var pal = wr.GetPalette("player0");
|
||||
|
||||
@@ -65,7 +65,6 @@ namespace OpenRA.Traits
|
||||
var crusher = GetUnitsAt(cell).Where(b => a != b && self.World.IsActorCrushableByActor(a, b)).FirstOrDefault();
|
||||
if (crusher != null)
|
||||
{
|
||||
Log.Write("{0} crushes {1}", crusher.Info.Name, a.Info.Name);
|
||||
// Apply the crush action
|
||||
foreach (var crush in a.traits.WithInterface<ICrushable>())
|
||||
crush.OnCrush(crusher);
|
||||
|
||||
Reference in New Issue
Block a user