<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>35319</bug_id>
          
          <creation_ts>2001-11-24 19:48:02 +0000</creation_ts>
          <short_desc>unable to click bottom right corner</short_desc>
          <delta_ts>2003-06-13 06:05:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>knavalbattle</product>
          <component>general</component>
          <version>1.0</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Graf Zahl">graf.zahl</reporter>
          <assigned_to name="Nikolas Zimmermann">wildfox</assigned_to>
          <cc>maksim</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51414</commentid>
    <comment_count>0</comment_count>
    <who name="Graf Zahl">graf.zahl</who>
    <bug_when>2001-11-24 19:47:21 +0000</bug_when>
    <thetext>(*** This bug was imported into bugs.kde.org ***)

Package:           kbattleship
Version:           1.0 (using KDE 2.2.1 )
Severity:          normal
Installed from:    SuSE RPMs
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:                Linux
OS/Compiler notes: kbattleship came precompiled with SuSE distribution

When playing kbattleship (single or multiplayer) I *sometimes* can&apos;t click (i.e. shoot) the bottom right corner of the enemy&apos;s battlefield. I wasn&apos;t able to make out when it works and when it doesn&apos;t. It seems to work if the very first shot in a game is placed in the bottom right. If it&apos;s the second or later shot it works sometimes other times nothing at all happens or the &quot;shot&quot; appears in the bottom left or top right corner.

(Submitted via bugs.kde.org)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126932</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Bob">j1m_b0b</who>
    <bug_when>2003-04-05 02:39:20 +0000</bug_when>
    <thetext>I have a similar problem with the KBattleship included in Debian/KDE 3.1
(packaged by kde.org) on both x86 and PowerPC. Sometimes clicks aren&apos;t
acknowledged (ie, no shot is made). As far as I can tell, battleship always
works properly if the pointer stays within the grid as you move it to its
destination (ie the place where you shoot). If the pointer moves from outside
the grid and directly onto the destination, then it might not work. The cell in
the lower-right corner is the most onerous.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>139341</commentid>
    <comment_count>2</comment_count>
    <who name="Maksim Orlovich">maksim</who>
    <bug_when>2003-06-13 06:05:55 +0000</bug_when>
    <thetext>Subject: kdegames/kbattleship/kbattleship

CVS commit by orlovich: 

Fix nonsense field geometry calculations that worked by a miracle and caused the
end of the last row and column to be excluded from event handling (#35319)
CCMAIL:35319-done@bugs.kde.org


  M +2 -2      kbattlefield.cpp   1.52


--- kdegames/kbattleship/kbattleship/kbattlefield.cpp  #1.51:1.52
@@ -227,9 +227,9 @@ int KBattleField::rectX()
 QRect KBattleField::ownRect()
 {
-        return QRect(ownXPosition(), ownYPosition(), ownXPosition() + ((m_ownfieldx - 1) * gridSize()), ownYPosition() + ((m_ownfieldy - 1) * gridSize()));
+        return QRect(ownXPosition(), ownYPosition(), m_ownfieldx * gridSize(), m_ownfieldy * gridSize());
 }
 
 QRect KBattleField::enemyRect()
 {
-        return QRect(enemyXPosition(), enemyYPosition(), rectX() + ((m_enemyfieldx - 1) * gridSize()), enemyYPosition() + ((m_enemyfieldy - 1) * gridSize()));
+        return QRect(enemyXPosition(), enemyYPosition(), m_enemyfieldx * gridSize(), m_enemyfieldy * gridSize());
 }


</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>