Fix compiler warnings
This commit is contained in:
parent
9184324a7f
commit
fd1158c0c8
1
Board.h
1
Board.h
|
|
@ -216,7 +216,6 @@ void make(Move m) {
|
|||
}
|
||||
|
||||
// are we promoting?
|
||||
byte new_val = m.pc_prom & 0b1111;
|
||||
if(m.pc_prom != P_EMPTY) {
|
||||
// promoting; indicate this in the sq_to byte in unmove.
|
||||
field[m.sq_to] = m.pc_prom;
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
#include "Types.h"
|
||||
#include "Move.h"
|
||||
|
||||
const static byte SLIDE_OFFSETS[] = {-1, 1, -16, 16, 15, 17, -15, -17};
|
||||
const static byte KNIGHT_OFFSETS[] = {-31, 31, -33, 33, -18, 18, -14, 14};
|
||||
const static byte SLIDE_OFFSETS[] = {255, 1, 240, 16, 15, 17, 241, 239};
|
||||
const static byte KNIGHT_OFFSETS[] = {225, 31, 223, 33, 238, 18, 242, 14};
|
||||
|
||||
#define INVALID_MOVE Move{0xFF, 0xFF, P_EMPTY}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue