| Summary: | Wrong counting when ball leaves field | ||
|---|---|---|---|
| Product: | [Applications] kolf | Reporter: | Christian Na <noseman> |
| Component: | general | Assignee: | Jason Katz-Brown <jasonkb> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | esigra |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Christian Na
2002-10-15 11:33:29 UTC
I have a patch that sorts this (well it works for me (TM))
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;
}
hi! sorry to take so long to get around to thsi.. fixed in 3.1 branch, will fix in head after i return from japan in 2 weeks. thanks so much! |