From 3fda0ab14461adf6d13fa6727c7bb2b64193069b Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 8 Jul 2012 23:15:22 -0700 Subject: [PATCH] added an option to disable storms from configuration files --- src/kernel/move.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/kernel/move.c b/src/kernel/move.c index 3113a1c58..46a1cadfd 100644 --- a/src/kernel/move.c +++ b/src/kernel/move.c @@ -1720,9 +1720,12 @@ sail(unit * u, order * ord, bool move_on_land, region_list ** routep) int reason; if (gamecookie != global.cookie) { - gamedate date; - get_gamedate(turn, &date); - stormyness = storms[date.month] * 5; + bool storms_enabled = get_param_int(global.parameters, "rules.ship.storms", 1)!=0; + if (storms_enabled) { + gamedate date; + get_gamedate(turn, &date); + stormyness = storms[date.month] * 5; + } gamecookie = global.cookie; }