求助两段代码功能是否一致。
if (maze[X][Y].force.have && X != XX && Y != YY) do_sth();
if (maze[X][Y].force.have) { if (X == XX && Y == YY); else do_sth();