Simplify names, remove unused usings, remove redundant casts.

This commit is contained in:
RoosterDragon
2016-01-17 21:24:41 +00:00
parent aaeb715006
commit 8e89a6a696
304 changed files with 218 additions and 639 deletions

View File

@@ -13,11 +13,6 @@ using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using OpenAL;
using OpenRA.FileFormats;
using OpenRA.FileSystem;
using OpenRA.GameRules;
using OpenRA.Primitives;
using OpenRA.Traits;
namespace OpenRA.Platforms.Default
{
@@ -106,7 +101,7 @@ namespace OpenRA.Platforms.Default
throw new InvalidOperationException("Can't create OpenAL device");
}
var ctx = ALC10.alcCreateContext(device, (int[])null);
var ctx = ALC10.alcCreateContext(device, null);
if (ctx == IntPtr.Zero)
throw new InvalidOperationException("Can't create OpenAL context");
ALC10.alcMakeContextCurrent(ctx);