Skip to content

Commit

Permalink
Save police_offence_log_entry missing [fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
LIPtoH committed May 8, 2023
1 parent 3594649 commit f4cd366
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions TS SE Tool/CustomClasses/Save/Items/SiiNunit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,6 @@ public dynamic DetectTag(string nameless, string tagLine, string[] _input)
return new Oversize_Block_rule_Save(_input);
}

case "police_offence_log":
{
return new Police_offence_Log(_input);
}

case "police_ctrl":
{
return new Police_Ctrl(_input);
Expand Down Expand Up @@ -344,6 +339,16 @@ public dynamic DetectTag(string nameless, string tagLine, string[] _input)
return new Ferry_log_Entry(_input);
}

case "police_offence_log":
{
return new Police_offence_Log(_input);
}

case "police_offence_log_entry":
{
return new Police_offence_log_Entry(_input);
}

case "gps_waypoint_storage":
{
return new GPS_waypoint_Storage(_input);
Expand Down Expand Up @@ -787,6 +792,20 @@ internal string PrintOut(uint _version)
}
}

//=== Police offence Log

if (_version >= (byte)saveVTV.v147)
{
Police_offence_Log Police_offence_Log = SiiNitems[Economy.police_offence_log];

returnSB.AppendLine(Police_offence_Log.PrintOut(_version, Economy.police_offence_log));

foreach (string item in Police_offence_Log.detailed_history_entries.Where(x => x != null && x != "null"))
{
returnSB.AppendLine(SiiNitems[item].PrintOut(_version, item));
}
}

//=== GPS Online

foreach (string item in Economy.stored_online_gps_behind_waypoints.Where(x => x != null && x != "null"))
Expand Down Expand Up @@ -823,20 +842,6 @@ internal string PrintOut(uint _version)
}
}

//=== Police offence Log

if (_version >= (byte)saveVTV.v147)
{
Police_offence_Log Police_offence_Log = SiiNitems[Economy.police_offence_log];

returnSB.AppendLine(Police_offence_Log.PrintOut(_version, Economy.police_offence_log));

foreach (string item in Police_offence_Log.detailed_history_entries.Where(x => x != null && x != "null"))
{
returnSB.AppendLine(SiiNitems[item].PrintOut(_version, item));
}
}

//=== Police Control

returnSB.AppendLine(SiiNitems[Economy.police_ctrl].PrintOut(_version, Economy.police_ctrl));
Expand Down

0 comments on commit f4cd366

Please sign in to comment.