diff options
author | tron <tron@openttd.org> | 2006-06-27 21:25:53 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-06-27 21:25:53 +0000 |
commit | 772fbda3e37488c2bf7beb96d35b2cbe001d9eda (patch) | |
tree | 1bfdb9c99b43fdc3b07ac13cbed4259a06d34f6f /misc_cmd.c | |
parent | 7fa72c5e2f224243a8c89096f0b07259e05e44cf (diff) | |
download | openttd-772fbda3e37488c2bf7beb96d35b2cbe001d9eda.tar.xz |
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
Diffstat (limited to 'misc_cmd.c')
-rw-r--r-- | misc_cmd.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/misc_cmd.c b/misc_cmd.c index 5df0e94fb..c2469945f 100644 --- a/misc_cmd.c +++ b/misc_cmd.c @@ -146,8 +146,9 @@ int32 CmdChangeCompanyName(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) DeleteName(p->name_1); p->name_1 = str; MarkWholeScreenDirty(); - } else + } else { DeleteName(str); + } return 0; } @@ -180,8 +181,9 @@ int32 CmdChangePresidentName(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) DoCommand(0, 0, 0, DC_EXEC, CMD_CHANGE_COMPANY_NAME); } MarkWholeScreenDirty(); - } else + } else { DeleteName(str); + } return 0; } @@ -269,8 +271,9 @@ int32 CmdChangeDifficultyLevel(TileIndex tile, uint32 flags, uint32 p1, uint32 p if (p1 != (uint32)-1L) { ((int*)&_opt_ptr->diff)[p1] = p2; _opt_ptr->diff_level = 3; // custom difficulty level - } else + } else { _opt_ptr->diff_level = p2; + } /* If we are a network-client, update the difficult setting (if it is open). * Use this instead of just dirtying the window because we need to load in |