From c003da0ca180f939022fa01adf2cb95c1b408bb6 Mon Sep 17 00:00:00 2001 From: NintenHero Date: Sun, 29 Oct 2023 00:33:59 -0400 Subject: [PATCH] Replace "for" loops with "while" loops I can't believe i didn't know what "while" loops were when i wrote this! I actually tried using "for" loops like that! --- Program.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Program.cs b/Program.cs index 4d0f181..e4a0a86 100644 --- a/Program.cs +++ b/Program.cs @@ -28,7 +28,8 @@ namespace RPG_Maker_LDB_Printer { Data.GetInt(); OpenIndent(); - for (bool stop = false; stop == false;) + bool stop = false; + while ( stop == false) { ContinueIndent(); int data = Data.GetInt(); @@ -138,7 +139,8 @@ namespace RPG_Maker_LDB_Printer ContinueIndent(); Data.GetInt(); OpenIndent(); - for (bool timingStop = false; timingStop == false;) + bool timingStop = false; + while (timingStop == false) { ContinueIndent(); int timingData = Data.GetInt(); @@ -172,7 +174,8 @@ namespace RPG_Maker_LDB_Printer ContinueIndent(); Data.GetInt(); OpenIndent(); - for (bool frameStop = false; frameStop == false;) + bool frameStop = false; + while(frameStop == false) { ContinueIndent(); int frameData = Data.GetInt(); @@ -192,7 +195,8 @@ namespace RPG_Maker_LDB_Printer ContinueIndent(); Data.GetInt(); OpenIndent(); - for (bool cellDataStop = false; cellDataStop == false;) + bool cellDataStop = false; + while (cellDataStop == false) { ContinueIndent(); int Cell_Data = Data.GetInt();