diff options
Diffstat (limited to 'kbattleship/kbattleship/kbdiagonalshotstrategy.cpp')
-rw-r--r-- | kbattleship/kbattleship/kbdiagonalshotstrategy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kbattleship/kbattleship/kbdiagonalshotstrategy.cpp b/kbattleship/kbattleship/kbdiagonalshotstrategy.cpp index 57dc317d..0f5e6284 100644 --- a/kbattleship/kbattleship/kbdiagonalshotstrategy.cpp +++ b/kbattleship/kbattleship/kbdiagonalshotstrategy.cpp @@ -34,7 +34,7 @@ const TQPoint KBDiagonalShotStrategy::nextShot() bool KBDiagonalShotStrategy::advance() { - while (m_fieldRect.tqcontains(m_column, m_row)) + while (m_fieldRect.contains(m_column, m_row)) { if(enemyFieldStateAt(m_column, m_row) != KBStrategy::SHOT) return true; @@ -97,7 +97,7 @@ TQPoint KBDiagonalShotStrategy::endPoint() if(m_vertical == 0 || m_horizontal == 0) return TQPoint(col, row); - while(m_fieldRect.tqcontains(col, row)) + while(m_fieldRect.contains(col, row)) { row += m_vertical; col += m_horizontal; |