Code cleanup.

This commit is contained in:
2023-04-19 13:31:17 +08:00
parent f664708165
commit cf6a7a795b
9 changed files with 27 additions and 31 deletions

View File

@@ -12,8 +12,7 @@ namespace Cryville.Crtr {
public double Duration {
get {
if (Unstamped == null) return 0;
if (Unstamped.IsLong)
if (ReleaseEvent != null)
return ReleaseEvent.Time - Time;
else return 0;
}