forked from github/server
added an option to disable storms from configuration files
This commit is contained in:
parent
366f0feeaa
commit
3fda0ab144
|
@ -1720,9 +1720,12 @@ sail(unit * u, order * ord, bool move_on_land, region_list ** routep)
|
||||||
int reason;
|
int reason;
|
||||||
|
|
||||||
if (gamecookie != global.cookie) {
|
if (gamecookie != global.cookie) {
|
||||||
gamedate date;
|
bool storms_enabled = get_param_int(global.parameters, "rules.ship.storms", 1)!=0;
|
||||||
get_gamedate(turn, &date);
|
if (storms_enabled) {
|
||||||
stormyness = storms[date.month] * 5;
|
gamedate date;
|
||||||
|
get_gamedate(turn, &date);
|
||||||
|
stormyness = storms[date.month] * 5;
|
||||||
|
}
|
||||||
gamecookie = global.cookie;
|
gamecookie = global.cookie;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue