WIP CrashReporter, misc refactoring

This commit is contained in:
Regalis
2015-09-19 15:14:47 +03:00
parent 16bf562837
commit f6966f06c3
86 changed files with 1616 additions and 631 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ namespace Subsurface
Vector2 position = (randomWayPoint == null) ? Vector2.Zero : randomWayPoint.SimPosition;
position.X += Rand.Range(-0.5f, 0.5f);
position.Y += Rand.Range(-0.5f, 0.5f);
monsters[i] = new Character(characterFile, position);
monsters[i] = new AICharacter(characterFile, position);
}
}
+1 -1
View File
@@ -159,7 +159,7 @@ namespace Subsurface
public void GiveReward()
{
var mode = Game1.GameSession.gameMode as SinglePlayerMode;
var mode = GameMain.GameSession.gameMode as SinglePlayerMode;
mode.Money += reward;
if (!string.IsNullOrWhiteSpace(successMessage))
+2 -2
View File
@@ -41,9 +41,9 @@ namespace Subsurface
public Task(float priority, string name)
{
if (Game1.GameSession==null || Game1.GameSession.taskManager == null) return;
if (GameMain.GameSession==null || GameMain.GameSession.taskManager == null) return;
taskManager = Game1.GameSession.taskManager;
taskManager = GameMain.GameSession.taskManager;
musicType = "repair";
this.priority = priority;
this.name = name;