diff --git a/README.md b/README.md index 97078f9..38cba81 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,8 @@ This tool would not have been possible without the help of numerous people. Than * **Al3x_10m** for help with countless hours of testing and useful advice * **WinterMute** for helping me with his vast knowledge on everything gamecart related * **profi200** for always useful advice and helpful hints on various things +* **windows-server-2003** for the initial implementation of if-else-goto in .gm9 scripts +* **Kazuma77** for pushing forward scripting, for testing and for always useful advice * **JaySea**, **YodaDaCoda**, **liomajor**, **Supster131**, **imanoob**, **Kasher_CS** and countless others from freenode #Cakey and the GBAtemp forums for testing, feedback and helpful hints * **Shadowhand** for being awesome and [hosting my nightlies](https://d0k3.secretalgorithm.com/) * **Plailect** for putting his trust in my tools and recommending this in [The Guide](https://3ds.guide/) diff --git a/arm9/source/utils/scripting.c b/arm9/source/utils/scripting.c index e09d799..73398f5 100644 --- a/arm9/source/utils/scripting.c +++ b/arm9/source/utils/scripting.c @@ -1014,7 +1014,7 @@ bool run_line(const char* line_start, const char* line_end, u32* flags, char* er // elif handling if ((cmdid == CMD_ID_ELIF) && !skip_state) { - skip_state = _SKIP_TO_END; + skip_state = _SKIP_TILL_END; return true; } @@ -1024,7 +1024,7 @@ bool run_line(const char* line_start, const char* line_end, u32* flags, char* er line_start_next += strlen((cmdid == CMD_ID_IF) ? _CMD_IF : _CMD_ELIF); // run condition, take over result - if (run_line(line_start_next, line_end, flags, err_str, true))) + if (run_line(line_start_next, line_end, flags, err_str, true)) strncpy(argv[0], _ARG_TRUE, _ARG_MAX_LEN); }