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

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