Deactivate kicker log code for now (as it might cause segfaults). Will be fixed later.

This commit is contained in:
lotodore
2007-09-04 22:36:03 +00:00
parent b96bad9f69
commit def679e66c
+12 -6
View File
@@ -1284,7 +1284,7 @@ QString Log::determineHandName(int myCardsValueInt) {
handName = translateCardsValueCode(myCardsValueInt).at(0)+translateCardsValueCode(myCardsValueInt).at(1); handName = translateCardsValueCode(myCardsValueInt).at(0)+translateCardsValueCode(myCardsValueInt).at(1);
// same hand detection /* // same hand detection
for(it = shownCardsValueInt.begin(); it != shownCardsValueInt.end(); it++) { for(it = shownCardsValueInt.begin(); it != shownCardsValueInt.end(); it++) {
if(((*it)/1000000) == (myCardsValueInt/1000000)) { if(((*it)/1000000) == (myCardsValueInt/1000000)) {
sameHandCardsValueInt.push_back(*it); sameHandCardsValueInt.push_back(*it);
@@ -1308,6 +1308,7 @@ QString Log::determineHandName(int myCardsValueInt) {
} }
} }
*/
} }
break; break;
// Full House // Full House
@@ -1320,7 +1321,7 @@ QString Log::determineHandName(int myCardsValueInt) {
handName = translateCardsValueCode(myCardsValueInt).at(0)+translateCardsValueCode(myCardsValueInt).at(1); handName = translateCardsValueCode(myCardsValueInt).at(0)+translateCardsValueCode(myCardsValueInt).at(1);
// same hand detection /* // same hand detection
for(it = shownCardsValueInt.begin(); it != shownCardsValueInt.end(); it++) { for(it = shownCardsValueInt.begin(); it != shownCardsValueInt.end(); it++) {
if(((*it)/1000000) == (myCardsValueInt/1000000)) { if(((*it)/1000000) == (myCardsValueInt/1000000)) {
sameHandCardsValueInt.push_back(*it); sameHandCardsValueInt.push_back(*it);
@@ -1397,6 +1398,7 @@ QString Log::determineHandName(int myCardsValueInt) {
} }
} }
} }
*/
} }
break; break;
// Straight // Straight
@@ -1408,7 +1410,7 @@ QString Log::determineHandName(int myCardsValueInt) {
case 3: { case 3: {
handName = translateCardsValueCode(myCardsValueInt).at(0)+translateCardsValueCode(myCardsValueInt).at(1); handName = translateCardsValueCode(myCardsValueInt).at(0)+translateCardsValueCode(myCardsValueInt).at(1);
// same hand detection /* // same hand detection
for(it = shownCardsValueInt.begin(); it != shownCardsValueInt.end(); it++) { for(it = shownCardsValueInt.begin(); it != shownCardsValueInt.end(); it++) {
if(((*it)/1000000) == (myCardsValueInt/1000000)) { if(((*it)/1000000) == (myCardsValueInt/1000000)) {
sameHandCardsValueInt.push_back(*it); sameHandCardsValueInt.push_back(*it);
@@ -1449,6 +1451,7 @@ QString Log::determineHandName(int myCardsValueInt) {
} }
} }
} }
*/
} }
break; break;
// Two Pairs // Two Pairs
@@ -1456,7 +1459,7 @@ QString Log::determineHandName(int myCardsValueInt) {
handName = translateCardsValueCode(myCardsValueInt).at(0)+translateCardsValueCode(myCardsValueInt).at(1)+translateCardsValueCode(myCardsValueInt).at(2); handName = translateCardsValueCode(myCardsValueInt).at(0)+translateCardsValueCode(myCardsValueInt).at(1)+translateCardsValueCode(myCardsValueInt).at(2);
// same hand detection /* // same hand detection
for(it = shownCardsValueInt.begin(); it != shownCardsValueInt.end(); it++) { for(it = shownCardsValueInt.begin(); it != shownCardsValueInt.end(); it++) {
if(((*it)/10000) == (myCardsValueInt/10000)) { if(((*it)/10000) == (myCardsValueInt/10000)) {
sameHandCardsValueInt.push_back(*it); sameHandCardsValueInt.push_back(*it);
@@ -1480,6 +1483,7 @@ QString Log::determineHandName(int myCardsValueInt) {
} }
} }
*/
} }
break; break;
// Pair // Pair
@@ -1487,7 +1491,7 @@ QString Log::determineHandName(int myCardsValueInt) {
handName = translateCardsValueCode(myCardsValueInt).at(0)+translateCardsValueCode(myCardsValueInt).at(1); handName = translateCardsValueCode(myCardsValueInt).at(0)+translateCardsValueCode(myCardsValueInt).at(1);
// same hand detection /* // same hand detection
for(it = shownCardsValueInt.begin(); it != shownCardsValueInt.end(); it++) { for(it = shownCardsValueInt.begin(); it != shownCardsValueInt.end(); it++) {
if(((*it)/1000000) == (myCardsValueInt/1000000)) { if(((*it)/1000000) == (myCardsValueInt/1000000)) {
sameHandCardsValueInt.push_back(*it); sameHandCardsValueInt.push_back(*it);
@@ -1546,6 +1550,7 @@ QString Log::determineHandName(int myCardsValueInt) {
} }
} }
} }
*/
} }
break; break;
// highestCard // highestCard
@@ -1553,7 +1558,7 @@ QString Log::determineHandName(int myCardsValueInt) {
handName = translateCardsValueCode(myCardsValueInt).at(0)+translateCardsValueCode(myCardsValueInt).at(1); handName = translateCardsValueCode(myCardsValueInt).at(0)+translateCardsValueCode(myCardsValueInt).at(1);
// same hand detection /* // same hand detection
for(it = shownCardsValueInt.begin(); it != shownCardsValueInt.end(); it++) { for(it = shownCardsValueInt.begin(); it != shownCardsValueInt.end(); it++) {
if(((*it)/1000000) == (myCardsValueInt/1000000)) { if(((*it)/1000000) == (myCardsValueInt/1000000)) {
sameHandCardsValueInt.push_back(*it); sameHandCardsValueInt.push_back(*it);
@@ -1630,6 +1635,7 @@ QString Log::determineHandName(int myCardsValueInt) {
} }
} }
} }
*/
} }
break; break;
default: {} default: {}