Skip to content

Commit

Permalink
Merge pull request #27 from bigbang1112-cz/dev
Browse files Browse the repository at this point in the history
Fix pixel edge for other skins, fix TMNESWC finish line reset
  • Loading branch information
BigBang1112 authored Dec 7, 2024
2 parents 81a11bc + a16b363 commit 82c1159
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 0 deletions.
Binary file modified ClipInput/Assets/Tools/ClipInput2/Images/Classic/PadLeft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ClipInput/Assets/Tools/ClipInput2/Images/Classic/PadLeft.webp
Binary file not shown.
Binary file modified ClipInput/Assets/Tools/ClipInput2/Images/Classic/PadRight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ClipInput/Assets/Tools/ClipInput2/Images/Classic/PadRight.webp
Binary file not shown.
Binary file modified ClipInput/Assets/Tools/ClipInput2/Images/White/PadLeft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ClipInput/Assets/Tools/ClipInput2/Images/White/PadLeft.webp
Binary file not shown.
Binary file modified ClipInput/Assets/Tools/ClipInput2/Images/White/PadRight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ClipInput/Assets/Tools/ClipInput2/Images/White/PadRight.webp
Binary file not shown.
7 changes: 7 additions & 0 deletions ClipInput/ClipInputTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ private void GenerateGhostInputs(IList<CGameCtnMediaTrack> tracks, Ghost ghost)
inputs = inputs.Select(input => input.WithTime(input.Time - fakeIsRaceRunning.Time)).ToList();
}

if (replay?.Game == "TmNations" && inputEndTime.HasValue)
{
var inputList = inputs.ToList();
inputList.Add(new FakeFinishLine(inputEndTime.Value, true));
inputs = inputList;
}

var inputTrackBuilder = new InputTrackBuilder(Config, tracks, inputs, endTime, inputEndTime > TimeInt32.Zero ? inputEndTime.Value : null);

for (var i = 0; i < 2; i++)
Expand Down

0 comments on commit 82c1159

Please sign in to comment.