GUIStyle improvements & some simple UI graphics, networking bugfixes, separate Random class, some StyleCop cleanup

This commit is contained in:
Regalis
2015-07-02 22:24:50 +03:00
parent b493ed2b39
commit d836a99515
119 changed files with 8842 additions and 1277 deletions
+3 -3
View File
@@ -139,7 +139,7 @@ namespace Subsurface
float lowpassHFGain = 1.0f;
if (Character.Controlled != null)
{
AnimController animController = Character.Controlled.animController;
AnimController animController = Character.Controlled.AnimController;
if (animController.HeadInWater)
{
ambienceVolume = 0.5f;
@@ -184,7 +184,7 @@ namespace Subsurface
if (suitableMusic.Count > 0 && !suitableMusic.Contains(currentMusic))
{
int index = Game1.localRandom.Next(suitableMusic.Count());
int index = Rand.Int(suitableMusic.Count());
if (currentMusic == null || suitableMusic[index].file != currentMusic.file)
{
@@ -225,7 +225,7 @@ namespace Subsurface
var sounds = damageSounds.Where(x => damage >= x.damageRange.X && damage <= x.damageRange.Y && x.damageType == damageType).ToList();
if (!sounds.Any()) return;
int selectedSound = Game1.localRandom.Next(sounds.Count());
int selectedSound = Rand.Int(sounds.Count());
int i = 0;
foreach (var s in sounds)