diff --git a/MisaMinoNET/MisaMino/tetris_ai.cpp b/MisaMinoNET/MisaMino/tetris_ai.cpp index 26084f9..1365f93 100644 --- a/MisaMinoNET/MisaMino/tetris_ai.cpp +++ b/MisaMinoNET/MisaMino/tetris_ai.cpp @@ -467,8 +467,8 @@ namespace AI { int s = 0; s -= int( warning_factor * ai_param.tspin3 ); score += s; - if ( y <= pool_h - 3 && ( pool.row[y + 3] & ( 1 << x ) ) == 0 ) { - int r = ~pool.row[y + 3] & pool.m_w_mask; + if ( y <= pool_h - 3 && ( pool.row[y + 2] & ( 1 << x ) ) == 0 ) { + int r = ~pool.row[y + 2] & pool.m_w_mask; if ( ( r & ( r - 1 ) ) == 0 ) { score -= int( warning_factor * (ai_param.tspin * 4 + ai_param.open_hole) ); } @@ -551,8 +551,8 @@ namespace AI { int s = 0; s -= int( warning_factor * ai_param.tspin3 ); score += s; - if ( y <= pool_h - 3 && ( pool.row[y + 3] & ( 1 << x ) ) == 0 ) { - int r = ~pool.row[y + 3] & pool.m_w_mask; + if ( y <= pool_h - 3 && ( pool.row[y + 2] & ( 1 << x ) ) == 0 ) { + int r = ~pool.row[y + 2] & pool.m_w_mask; if ( ( r & ( r - 1 ) ) == 0 ) { score -= int( warning_factor * (ai_param.tspin * 4 + ai_param.open_hole) ); }