[Kde-games-devel] Patch for Kolf (another one)

Albert Astals Cid tsdgeos at terra.es
Fri Apr 25 23:49:39 CEST 2003


This patch solves a bug more important (i think) than the two other i sent.

It fixes http://bugs.kde.org/show_bug.cgi?id=49173

The patch

Index: game.cpp
===================================================================
RCS file: /home/kde/kdegames/kolf/game.cpp,v
retrieving revision 1.163
diff -u -r1.163 game.cpp
--- game.cpp    11 Feb 2003 21:51:04 -0000      1.163
+++ game.cpp    25 Apr 2003 20:48:26 -0000
@@ -2790,15 +2790,13 @@
                        // don't do it if he's past maxStrokes
                        if ((*it).score(curHole) < holeInfo.maxStrokes() - 1 
|| !holeInfo.hasMaxStrokes())
                        {
-                               shotDone();
                                loadStateList();

                                // increment curPlayer; he did take a shot, 
after all
                                (*curPlayer).addStrokeToHole(curHole);
                                emit scoreChanged((*curPlayer).id(), curHole, 
(*curPlayer).score(curHole));
                        }
-                       else
-                               shotDone();
+                       shotDone();

                        return;
                }



More information about the kde-games-devel mailing list