- // Find destination squares for king and rook:
- if(rfrom > kfrom) { // O-O
- kto = relative_square(us, SQ_G1);
- rto = relative_square(us, SQ_F1);
- }
- else { // O-O-O
- kto = relative_square(us, SQ_C1);
- rto = relative_square(us, SQ_D1);
+ // Find destination squares for king and rook
+ if (rfrom > kfrom) // O-O
+ {
+ kto = relative_square(us, SQ_G1);
+ rto = relative_square(us, SQ_F1);
+ } else { // O-O-O
+ kto = relative_square(us, SQ_C1);
+ rto = relative_square(us, SQ_D1);