Skip castle rights update when not needed
authorMarco Costalba <mcostalba@gmail.com>
Thu, 18 Jun 2009 13:22:39 +0000 (15:22 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 18 Jun 2009 16:23:35 +0000 (17:23 +0100)
commit190f88e5324ffd048c5234e78b41748432dc7579
tree5efa26e4c170d0b9f42a8c737e59c4ef91af8518
parent8acb1d7e4ddb9627ed3c2910f6c47f466b94ad90
Skip castle rights update when not needed

Micro optimization in do_move(), a quick check
avoid us to update castle rights in almost 90%
of cases.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/position.cpp