diff options
author | alberth <alberth@openttd.org> | 2010-07-24 10:14:39 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-07-24 10:14:39 +0000 |
commit | be6c0584240caf420b2475a0be036391e842e8af (patch) | |
tree | 6111751cf5526e1eb41176782d84766c4e9ed185 /src/console_cmds.cpp | |
parent | 645b6ce77345867fa96861843197481131566c46 (diff) | |
download | openttd-be6c0584240caf420b2475a0be036391e842e8af.tar.xz |
(svn r20211) -Codechange: Indented code should have curly braces around it.
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r-- | src/console_cmds.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index c75ad7df0..a2bec2870 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -324,8 +324,9 @@ DEF_CONSOLE_CMD(ConRemove) const char *file = argv[1]; const FiosItem *item = GetFiosItem(file); if (item != NULL) { - if (!FiosDelete(item->name)) + if (!FiosDelete(item->name)) { IConsolePrintF(CC_ERROR, "%s: Failed to delete file", file); + } } else { IConsolePrintF(CC_ERROR, "%s: No such file or directory.", file); } @@ -889,8 +890,9 @@ DEF_CONSOLE_CMD(ConExec) IConsoleCmdExec(cmdline); } - if (ferror(script_file)) + if (ferror(script_file)) { IConsoleError("Encountered errror while trying to read from script file"); + } _script_running = false; FioFCloseFile(script_file); |