Replace for(;;) with while (true).

This commit is contained in:
Paul Chote
2019-06-08 15:17:27 +01:00
committed by reaperrr
parent 4d8aaeb690
commit c253aaeb9d
9 changed files with 13 additions and 9 deletions

View File

@@ -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);