Disable gfMoreWind for land objects on turn end only after a fixed-time delay
15s sounds much, but it's the average amount for gfMineStrike mines to settle
naturally. And it would be very confusing to see falling mines suddenly not
caring about gfMoreWind for no apparent reason.
Note this whole thing is a giant hack anyway, to prevent a turn being
blocked by infinitely bouncing mines.
The better solution would be to help gfMoreWind-affected land objects settle
naturally more reliably even under extreme wind.
But this commit is "good enough" for now.
If you don't like the delay, you can always tweak the constant.
Name: hedgewars-server
Version: 0.1
Synopsis: hedgewars server
Description: hedgewars server
Homepage: https://www.hedgewars.org/
License: GPL-2
Author: unC0Rr
Maintainer: a.korotaev@hedgewars.org
Category: Game
Build-type: Simple
Cabal-version: >=1.10
Executable hedgewars-server
main-is: hedgewars-server.hs
default-language: Haskell2010
-- Don't forget to update INSTALL.md and .travis.yml when you change these dependencies!
Build-depends:
base >= 4.8,
containers,
vector,
bytestring,
network >= 2.3 && < 3.0,
random,
time,
mtl >= 2,
sandi,
hslogger,
process,
deepseq,
utf8-string,
SHA,
entropy,
zlib >= 0.5.3 && < 0.7,
regex-tdfa,
binary >= 0.8.5.1,
-- These dependencies are for OFFICIAL_SERVER only and do not need to be mentioned in docs
yaml >= 0.8.30,
aeson,
text >= 1.2
if !os(windows)
build-depends: unix
ghc-options: -O2
Executable checker
main-is: OfficialServer/checker.hs
default-language: Haskell2010
Build-depends:
base >= 4.8,
containers,
vector,
bytestring,
network >= 2.3 && < 3.0,
mtl >= 2,
sandi,
hslogger,
process,
ConfigFile,
directory
if !os(windows)
build-depends: unix
ghc-options: -O2