Skip to content

Commit

Permalink
Update OpenRA.Mods.D2k/Traits/SpiceBloom.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Gustas <[email protected]>
  • Loading branch information
Porenutak and PunkPun authored Jun 18, 2024
1 parent 2a0269b commit cefb64d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions OpenRA.Mods.D2k/Traits/SpiceBloom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ void SeedResources(Actor self)
.Cast<CPos?>()
.RandomOrDefault(self.World.SharedRandom);

if (cell == null)
cell = cells.Random(self.World.SharedRandom);
var cell = emptyCells.Count == 0

Check failure on line 132 in OpenRA.Mods.D2k/Traits/SpiceBloom.cs

View workflow job for this annotation

GitHub Actions / Linux (.NET 6.0)

A local variable or function named 'cell' is already defined in this scope

Check failure on line 132 in OpenRA.Mods.D2k/Traits/SpiceBloom.cs

View workflow job for this annotation

GitHub Actions / Linux (.NET 6.0)

The name 'emptyCells' does not exist in the current context

Check failure on line 132 in OpenRA.Mods.D2k/Traits/SpiceBloom.cs

View workflow job for this annotation

GitHub Actions / Linux (.NET 6.0)

A local variable or function named 'cell' is already defined in this scope

Check failure on line 132 in OpenRA.Mods.D2k/Traits/SpiceBloom.cs

View workflow job for this annotation

GitHub Actions / Linux (.NET 6.0)

The name 'emptyCells' does not exist in the current context

Check failure on line 132 in OpenRA.Mods.D2k/Traits/SpiceBloom.cs

View workflow job for this annotation

GitHub Actions / Windows (.NET 6.0)

A local variable or function named 'cell' is already defined in this scope

Check failure on line 132 in OpenRA.Mods.D2k/Traits/SpiceBloom.cs

View workflow job for this annotation

GitHub Actions / Windows (.NET 6.0)

The name 'emptyCells' does not exist in the current context

Check failure on line 132 in OpenRA.Mods.D2k/Traits/SpiceBloom.cs

View workflow job for this annotation

GitHub Actions / Windows (.NET 6.0)

A local variable or function named 'cell' is already defined in this scope

Check failure on line 132 in OpenRA.Mods.D2k/Traits/SpiceBloom.cs

View workflow job for this annotation

GitHub Actions / Windows (.NET 6.0)

The name 'emptyCells' does not exist in the current context
? cells.Random(self.World.SharedRandom)
: emptyCells.Random(self.World.SharedRandom);

Check failure on line 134 in OpenRA.Mods.D2k/Traits/SpiceBloom.cs

View workflow job for this annotation

GitHub Actions / Linux (.NET 6.0)

The name 'emptyCells' does not exist in the current context

Check failure on line 134 in OpenRA.Mods.D2k/Traits/SpiceBloom.cs

View workflow job for this annotation

GitHub Actions / Linux (.NET 6.0)

The name 'emptyCells' does not exist in the current context

Check failure on line 134 in OpenRA.Mods.D2k/Traits/SpiceBloom.cs

View workflow job for this annotation

GitHub Actions / Windows (.NET 6.0)

The name 'emptyCells' does not exist in the current context

Check failure on line 134 in OpenRA.Mods.D2k/Traits/SpiceBloom.cs

View workflow job for this annotation

GitHub Actions / Windows (.NET 6.0)

The name 'emptyCells' does not exist in the current context

projectiles.Push(new ProjectileArgs
{
Expand Down

0 comments on commit cefb64d

Please sign in to comment.