Avoid a tricky line in shelter_storm()
authorMarco Costalba <mcostalba@gmail.com>
Sat, 23 Feb 2013 18:27:32 +0000 (19:27 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 23 Feb 2013 18:27:32 +0000 (19:27 +0100)
commitdbd28bc7f8a92ef06974d37ede2db07922712ae9
treefaf84abf2a4a7a39decdece5724b5316b09e1eb7
parentccf21f5595662390214fcc8a7f11b3dae3725225
Avoid a tricky line in shelter_storm()

kf = (kf == FILE_A) ? kf++ : ....

is tricky becuase kf is updated twice and it happens
to do the right thing just by accident.

Rewrite in a better way.

Spotted by pdimov

No functional change.
src/pawns.cpp