From 58624c022021290317770a15d5e342a5e125cf16 Mon Sep 17 00:00:00 2001 From: Greavesy1899 Date: Tue, 26 Mar 2024 11:54:21 +0000 Subject: [PATCH] AnimalTraffic: Remove verbose error which infact is not an error --- .../ResourceTypes/FileTypes/Navigation/AnimalTraffic.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Mafia2Libs/ResourceTypes/FileTypes/Navigation/AnimalTraffic.cs b/Mafia2Libs/ResourceTypes/FileTypes/Navigation/AnimalTraffic.cs index c6d1e611..07890125 100644 --- a/Mafia2Libs/ResourceTypes/FileTypes/Navigation/AnimalTraffic.cs +++ b/Mafia2Libs/ResourceTypes/FileTypes/Navigation/AnimalTraffic.cs @@ -83,7 +83,7 @@ public class AnimalTrafficPath public float Unk10 { get; set; } // Has an "Easy to use" property, remove from view - [Browsable(false)] + [LocalisedDescription("Unknown; Unk30[0] appears to be animal type, so maybe the rest can be other animal types too?")] public byte[] Unk30 { get; set; } // direct index to animal types array // A list of points on the AnimalTraffic path. @@ -256,9 +256,9 @@ public void ReadFromFile(BinaryReader reader) byte count4 = reader.ReadByte(); path.Unk30 = reader.ReadBytes(count4); - //ToolkitAssert.Ensure(path.Unk00 == 5.0f, "Unk00 is expected to be 5, but it is [0]", path.Unk00); - //ToolkitAssert.Ensure(path.Unk10 == 15.0f, "Unk00 is expected to be 15, but it is [0]", path.Unk10); - ToolkitAssert.Ensure(count4 == 1, "Unk30 is supposed to have the size of 1. It is: {0}.\nThis suggests bad data. Saving may not be possible.", path.Unk30.Length); + // NB: Unk30 can have a size greater than 1. + // I believe the first one is animal type, but the rest im uncertain of. + // Could it be referencing some data perhaps? Need to check if it causes problems. // Load Path points path.Points = new PathPoint[pathSize];