summaryrefslogtreecommitdiffstats
path: root/kbattleship/kbattleship/kship.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbattleship/kbattleship/kship.cpp')
-rw-r--r--kbattleship/kbattleship/kship.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kbattleship/kbattleship/kship.cpp b/kbattleship/kbattleship/kship.cpp
index a9fbb558..05e893b3 100644
--- a/kbattleship/kbattleship/kship.cpp
+++ b/kbattleship/kbattleship/kship.cpp
@@ -60,7 +60,7 @@ bool KShip::placedLeft()
return m_placedLeft;
}
-bool KShip::contains(int x, int y)
+bool KShip::tqcontains(int x, int y)
{
return (x >= m_shipxstart && x <= m_shipxstop) && (y >= m_shipystart && y <= m_shipystop);
}
@@ -69,7 +69,7 @@ int KShip::shipTypeEnum(int x, int y)
{
int ret;
ret = KBattleField::WATER;
- if (contains(x, y))
+ if (tqcontains(x, y))
{
switch(m_shiptype)
{