|
|
@ -97,7 +97,7 @@ namespace Fungus |
|
|
|
// Last command in block |
|
|
|
// Last command in block |
|
|
|
if (commandIndex >= parentBlock.commandList.Count) |
|
|
|
if (commandIndex >= parentBlock.commandList.Count) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Stop(); |
|
|
|
StopParentBlock(); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -128,7 +128,7 @@ namespace Fungus |
|
|
|
if (i >= parentBlock.commandList.Count - 1) |
|
|
|
if (i >= parentBlock.commandList.Count - 1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Last command in Block, so stop |
|
|
|
// Last command in Block, so stop |
|
|
|
Stop(); |
|
|
|
StopParentBlock(); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
@ -147,7 +147,7 @@ namespace Fungus |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// No matching End command found, so just stop the block |
|
|
|
// No matching End command found, so just stop the block |
|
|
|
Stop(); |
|
|
|
StopParentBlock(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override string GetSummary() |
|
|
|
public override string GetSummary() |
|
|
|