summaryrefslogtreecommitdiff
path: root/engine.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-01 06:32:03 +0000
committertron <tron@openttd.org>2006-02-01 06:32:03 +0000
commit22dc05faf2219f6e3803f9cbff92249823bb11eb (patch)
tree567a406e1224ab13f36027469339c6c42ada96f1 /engine.c
parent8cdd3261fc5e37d2d39364d9c2c1449f83b1c504 (diff)
downloadopenttd-22dc05faf2219f6e3803f9cbff92249823bb11eb.tar.xz
(svn r3510) Fiddle with whitespace and parentheses
Diffstat (limited to 'engine.c')
-rw-r--r--engine.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/engine.c b/engine.c
index ef916d5c7..0ed802637 100644
--- a/engine.c
+++ b/engine.c
@@ -922,13 +922,12 @@ void EnginesDailyLoop(void)
int32 CmdWantEnginePreview(int x, int y, uint32 flags, uint32 p1, uint32 p2)
{
Engine *e;
- if (!IsEngineIndex(p1)) return CMD_ERROR;
+ if (!IsEngineIndex(p1)) return CMD_ERROR;
e = GetEngine(p1);
if (GetBestPlayer(e->preview_player) != _current_player) return CMD_ERROR;
- if (flags & DC_EXEC)
- AcceptEnginePreview(e, _current_player);
+ if (flags & DC_EXEC) AcceptEnginePreview(e, _current_player);
return 0;
}