mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-06-09 10:06:49 +02:00
Fix ghost time of death (#43411)
* Use RealTime when setting ghost TimeOfDeath * Don't pause with RealTime * Oops. Also get rid of AutoGenerateComponentPause
This commit is contained in:
@@ -205,7 +205,7 @@ namespace Content.Server.Ghost
|
||||
}
|
||||
|
||||
_eye.RefreshVisibilityMask(uid);
|
||||
var time = _gameTiming.CurTime;
|
||||
var time = _gameTiming.RealTime;
|
||||
component.TimeOfDeath = time;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Content.Shared.Ghost;
|
||||
/// Handles limiting interactions, using ghost abilities, ghost visibility, and ghost warping.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, Access(typeof(SharedGhostSystem))]
|
||||
[AutoGenerateComponentState(true), AutoGenerateComponentPause]
|
||||
[AutoGenerateComponentState(true)]
|
||||
public sealed partial class GhostComponent : Component
|
||||
{
|
||||
// Actions
|
||||
@@ -54,7 +54,7 @@ public sealed partial class GhostComponent : Component
|
||||
/// May not reflect actual time of death if this entity has been paused,
|
||||
/// but will give an accurate length of time <i>since</i> death.
|
||||
/// </remarks>
|
||||
[DataField, AutoPausedField]
|
||||
[DataField]
|
||||
public TimeSpan TimeOfDeath = TimeSpan.Zero;
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user