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!
This commit is contained in:
Michael Hinrichs 2023-10-29 00:33:59 -04:00
parent f9a23b8fd9
commit c003da0ca1
1 changed files with 8 additions and 4 deletions

View File

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