Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert Nightvision To Working Code #1721

Closed
wants to merge 10 commits into from
10 changes: 3 additions & 7 deletions Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,10 @@

while (query.MoveNext(out var uid, out var comp))
{
if (comp.PulseTime <= 0)
continue;

// The accumulator is for visually rendering the pulse strength decaying.
comp.PulseAccumulator += comp.PulseEndTime - _timing.CurTime;
if (comp.PulseTime <= 0f || comp.PulseAccumulator >= comp.PulseTime)

Check failure on line 53 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Operator '>=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 53 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Operator '>=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 53 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Operator '>=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 53 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Operator '>=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 53 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Operator '>=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 53 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Operator '>=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 53 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Operator '>=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 53 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Operator '>=' cannot be applied to operands of type 'TimeSpan' and 'float'

// This line is for the actual check that shuts off the pulse when its time is up.
if (_timing.CurTime < comp.PulseEndTime)
comp.PulseAccumulator += frameTime;

Check failure on line 55 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Operator '+=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 55 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Operator '+=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 55 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Operator '+=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 55 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Operator '+=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 55 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Operator '+=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 55 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Operator '+=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 55 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Operator '+=' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 55 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Operator '+=' cannot be applied to operands of type 'TimeSpan' and 'float'
if (comp.PulseAccumulator < comp.PulseTime)

Check failure on line 56 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Operator '<' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 56 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

Operator '<' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 56 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Operator '<' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 56 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Operator '<' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 56 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Operator '<' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 56 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Operator '<' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 56 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Operator '<' cannot be applied to operands of type 'TimeSpan' and 'float'

Check failure on line 56 in Content.Shared/Overlays/Switchable/SwitchableOverlaySystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

Operator '<' cannot be applied to operands of type 'TimeSpan' and 'float'
continue;

Toggle(uid, comp, false, false);
Expand Down
Loading