Search and destroy mission

Featuring ugly code
This commit is contained in:
juanjp600
2016-09-26 22:09:06 -03:00
parent 790212a20b
commit 344947c3c4
16 changed files with 398 additions and 66 deletions

View File

@@ -295,10 +295,6 @@ namespace Barotrauma
Location location = locations[i];
Vector2 pos = rectCenter + (location.MapPosition + offset) * scale;
Rectangle drawRect = location.Type.Sprite.SourceRect;
Rectangle sourceRect = drawRect;
drawRect.X = (int)pos.X - drawRect.Width/2;
@@ -387,7 +383,7 @@ namespace Barotrauma
if (rand.NextDouble() < 0.3f) return null;
mission = Mission.LoadRandom(locations, rand);
mission = Mission.LoadRandom(locations, rand, "", true);
}
return mission;