summaryrefslogtreecommitdiff
path: root/src/battle_script_commands.c
diff options
context:
space:
mode:
authorPokeCF <65613390+PokeCF@users.noreply.github.com>2020-06-08 17:09:54 -0400
committerGitHub <noreply@github.com>2020-06-08 17:09:54 -0400
commit760baec098f831dbefff9f6d2b86767a802e0394 (patch)
tree2bc4e93c96e55fbffab20a6551ddc6b49f58bddc /src/battle_script_commands.c
parent675f5ac03e97cb788feb178674a424246ef26bc6 (diff)
Unnest if statements
Overall, it is generally considered bad style to continually nest loops. However, if this is what the decompiler outputted, then why bother touching it? However, this can be rewritten as returning early if the playtime is less than 60. The reason for this is not because of the original code, but because it looks better, has the same output, and is easier to understand.
Diffstat (limited to 'src/battle_script_commands.c')
0 files changed, 0 insertions, 0 deletions