Replace for(;;) with while (true).
This commit is contained in:
@@ -167,7 +167,7 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
|
||||
Func<CPos, CVec, CPos> findEdge = (refCell, direction) =>
|
||||
{
|
||||
for (;;)
|
||||
while (true)
|
||||
{
|
||||
var newCell = refCell + direction;
|
||||
if (!shouldPaint(newCell))
|
||||
|
||||
@@ -164,7 +164,7 @@ namespace OpenRA.Mods.Common
|
||||
|
||||
public static IEnumerable<CPos> RandomWalk(CPos p, MersenneTwister r)
|
||||
{
|
||||
for (;;)
|
||||
while (true)
|
||||
{
|
||||
var dx = r.Next(-1, 2);
|
||||
var dy = r.Next(-1, 2);
|
||||
|
||||
@@ -109,7 +109,7 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
lock (syncWorker)
|
||||
workerAlive = true;
|
||||
|
||||
for (;;)
|
||||
while (true)
|
||||
{
|
||||
float hue;
|
||||
lock (syncWorker)
|
||||
|
||||
Reference in New Issue
Block a user