Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public override void SimulationStep (ushort vehicleID, ref Vehicle data, Vector3
info.m_vehicleAI.SimulationStep (num, ref instance2.m_vehicles.m_buffer [(int)num], vehicleID, ref data, lodPhysics);
num = trailingVehicle;
if (++num2 > 65536) {
CODebugBase<LogChannel>.Error (LogChannel.Core, "Invalid list detected!\n" + Environment.StackTrace);
CODebugBase<LogChannel>.Error (LogChannel.Core, "Liste invalide détectée !\n" + Environment.StackTrace);
break;
}
}
Expand Down Expand Up @@ -97,7 +97,7 @@ private void CheckOtherVehicles (ushort vehicleID, ref Vehicle vehicleData, ref
while (num5 != 0) {
num5 = this.CheckOtherVehicle (vehicleID, ref vehicleData, ref frameData, ref maxSpeed, ref blocked, ref collisionPush, maxBraking, num5, ref instance.m_vehicles.m_buffer [(int)num5], min, max, lodPhysics);
if (++num6 > 65536) {
CODebugBase<LogChannel>.Error (LogChannel.Core, "Invalid list detected!\n" + Environment.StackTrace);
CODebugBase<LogChannel>.Error (LogChannel.Core, "Liste invalide détectée !\n" + Environment.StackTrace);
break;
}
}
Expand Down Expand Up @@ -128,7 +128,7 @@ private void CheckOtherVehicles (ushort vehicleID, ref Vehicle vehicleData, ref
while (num12 != 0) {
num12 = this.CheckCitizen (vehicleID, ref vehicleData, segment, num7, magnitude, ref maxSpeed, ref blocked, maxBraking, num12, ref instance2.m_instances.m_buffer [(int)num12], min, max);
if (++num13 > 65536) {
CODebugBase<LogChannel>.Error (LogChannel.Core, "Invalid list detected!\n" + Environment.StackTrace);
CODebugBase<LogChannel>.Error (LogChannel.Core, "Liste invalide détectée !\n" + Environment.StackTrace);
break;
}
}
Expand Down Expand Up @@ -393,7 +393,7 @@ private static bool CheckOverlap (Segment3 segment, ushort ignoreVehicle, float
while (num5 != 0) {
num5 = CheckOverlap (segment, ignoreVehicle, maxVelocity, num5, ref instance.m_vehicles.m_buffer [(int)num5], ref result);
if (++num6 > 65536) {
CODebugBase<LogChannel>.Error (LogChannel.Core, "Invalid list detected!\n" + Environment.StackTrace);
CODebugBase<LogChannel>.Error (LogChannel.Core, "List invalide détectée !\n" + Environment.StackTrace);
break;
}
}
Expand Down