smite some compiler warnings, hide those that are to stay.

Hide some makefile output too
This commit is contained in:
alzeih
2010-07-22 01:24:42 +12:00
parent 55fd5c3b9b
commit 3f9ffbac80
7 changed files with 7 additions and 8 deletions

View File

@@ -231,6 +231,7 @@ namespace OpenRA
return sb.ToString();
}
#pragma warning disable 0472, 0162
internal static void DumpSyncReport(int frame)
{
var f = syncReports.FirstOrDefault(a => a.First == frame);

View File

@@ -29,7 +29,6 @@ namespace OpenRA.Server
= new Dictionary<int, List<Connection>>();
static Session lobbyInfo;
static bool GameStarted = false;
static string[] initialMods;
static string Name;
static WebClient wc = new WebClient();
static int ExternalPort;
@@ -51,7 +50,6 @@ namespace OpenRA.Server
Server.masterServerUrl = masterServerUrl;
isInternetServer = internetServer;
listener = new TcpListener(IPAddress.Any, port);
initialMods = mods;
Name = name;
ExternalPort = extport;
randomSeed = (int)DateTime.Now.ToBinary();

View File

@@ -28,7 +28,6 @@ namespace OpenRA.Traits
public void Damaged(Actor self, AttackInfo e)
{
var eva = self.World.WorldActor.Info.Traits.Get<EvaAlertsInfo>();
if (e.DamageState == DamageState.Dead)
if (self.Owner == self.World.LocalPlayer)
Sound.PlayVoice("Lost", self);

View File

@@ -70,7 +70,6 @@ namespace OpenRA.Widgets
var powers = world.LocalPlayer.PlayerActor.traits.WithInterface<SupportPower>();
var numPowers = powers.Count(p => p.IsAvailable);
if (numPowers == 0) return;
var position = RenderOrigin;
var rectBounds = RenderBounds;
WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world, "specialbin-top"),new float2(rectBounds.X,rectBounds.Y));
for (var i = 1; i < numPowers; i++)