Skip to content

Commit 306739b

Browse files
committed
Fix Bartoli/Winston meshes
Use proper mesh clones when Bartoli is made to look like Winston.
1 parent 261155e commit 306739b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

TRRandomizerCore/Randomizers/TR2/Classic/TR2EnemyRandomizer.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,7 @@ private void RandomizeEnemyMeshes(TR2CombinedLevel level, EnemyRandomizationColl
217217
&& _generator.NextDouble() < _cloneChance)
218218
{
219219
// Make Marco look and behave like Winston, until Lara gets too close
220-
TRModel marcoModel = level.Data.Models[TR2Type.MarcoBartoli];
221-
TRModel winnieModel = level.Data.Models[TR2Type.Winston];
222-
marcoModel.Animations = winnieModel.Animations;
223-
marcoModel.MeshTrees = winnieModel.MeshTrees;
224-
marcoModel.Meshes = winnieModel.Meshes;
220+
level.Data.Models[TR2Type.MarcoBartoli] = level.Data.Models[TR2Type.Winston].Clone();
225221
}
226222
}
227223

0 commit comments

Comments
 (0)