summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-27 21:25:53 +0000
committertron <tron@openttd.org>2006-06-27 21:25:53 +0000
commit2b27073156f40df263cf653263488b8d72a76236 (patch)
tree1bfdb9c99b43fdc3b07ac13cbed4259a06d34f6f /main_gui.c
parentc126ce110ee33bffe07dac5283d8a1648dc662b7 (diff)
downloadopenttd-2b27073156f40df263cf653263488b8d72a76236.tar.xz
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/main_gui.c b/main_gui.c
index d2389ec8b..3e63d4144 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -90,10 +90,11 @@ void HandleOnEditText(WindowEvent *e)
// Inform the player of this action
snprintf(msg, sizeof(msg), "%d", money);
- if (!_network_server)
+ if (!_network_server) {
SEND_COMMAND(PACKET_CLIENT_CHAT)(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_PLAYER, id + 1, msg);
- else
+ } else {
NetworkServer_HandleChat(NETWORK_ACTION_GIVE_MONEY, DESTTYPE_PLAYER, id + 1, msg, NETWORK_SERVER_INDEX);
+ }
break;
}
case 4: /* Game-Password and Company-Password */
@@ -2273,7 +2274,8 @@ static WindowDesc _main_status_desc = {
extern void UpdateAllStationVirtCoord(void);
-static void MainWindowWndProc(Window *w, WindowEvent *e) {
+static void MainWindowWndProc(Window* w, WindowEvent* e)
+{
int off_x;
switch (e->event) {