debug (timing) spam, and perf fixed on SupportPower

Build timing (un)hacked by chrisf
This commit is contained in:
Bob
2010-05-16 17:27:19 +12:00
committed by Chris Forbes
parent de9ec12c8c
commit 7deefc5246
8 changed files with 136 additions and 23 deletions

View File

@@ -87,7 +87,7 @@ namespace OpenRA.GameRules
throw new InvalidOperationException( "Trait prerequisites not satisfied (or prerequisite loop)" );
var prereqs = PrerequisitesOf( t[ index ] );
if( prereqs.Count == 0 || prereqs.All( n => ret.Any( x => x.GetType().IsSubclassOf( n ) ) ) )
if( prereqs.Count == 0 || prereqs.All( n => ret.Any( x => x.GetType() == n || x.GetType().IsSubclassOf( n ) ) ) )
{
ret.Add( t[ index ] );
t.RemoveAt( index );