Skip to content

Commit

Permalink
Minor change to inline field
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDunn committed Jan 5, 2022
1 parent 5f8060e commit 416be8a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/PacMan.GameComponents/GameActs/AttractAct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ struct Instruction
bool _chaseSubActReady;

bool _finished;
readonly string _version;

[SuppressMessage("ReSharper", "HeapView.ObjectAllocation.Evident")]
public AttractAct(
Expand All @@ -51,15 +50,15 @@ public AttractAct(
IHumanInterfaceParser input,
IGameSoundPlayer gameSoundPlayer)
{
_version = Assembly
string version = Assembly
.GetEntryAssembly()
?.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
?.InformationalVersion ?? "??";

MarqueeText[] texts =
{
new() {
Text = $"v{_version}",
Text = $"v{version}",
YPosition = 195,
TimeIdle = 1.Seconds(),
TimeIn = 1.Seconds(),
Expand Down

0 comments on commit 416be8a

Please sign in to comment.