summaryrefslogtreecommitdiffstats
path: root/kgoldrunner/src/kgrgame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kgoldrunner/src/kgrgame.cpp')
-rw-r--r--kgoldrunner/src/kgrgame.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kgoldrunner/src/kgrgame.cpp b/kgoldrunner/src/kgrgame.cpp
index b83b35ed..930bd83f 100644
--- a/kgoldrunner/src/kgrgame.cpp
+++ b/kgoldrunner/src/kgrgame.cpp
@@ -876,7 +876,7 @@ void KGrGame::loadGame() // Re-load game, score and level.
if (! s.isNull()) {
pr = s.mid (21, 7); // Get the collection prefix.
- pr = pr.left (pr.tqfind (" ", 0, FALSE));
+ pr = pr.left (pr.find (" ", 0, FALSE));
for (i = 0; i < imax; i++) { // Find the collection.
if (collections.at(i)->prefix == pr) {
@@ -1061,7 +1061,7 @@ void KGrGame::checkHighScore()
s1 >> prevDate;
if ((! scoreRecorded) && (score > prevScore)) {
highCount++;
- // Recode the user's name as UTF-8, in case it tqcontains
+ // Recode the user's name as UTF-8, in case it contains
// non-ASCII chars (e.g. "Kr�ger" is encoded as "Krüger").
s2 << (const char *) thisUser.utf8();
s2 << (TQ_INT16) level;
@@ -1080,7 +1080,7 @@ void KGrGame::checkHighScore()
delete prevDate;
}
if ((! scoreRecorded) && (highCount < 10)) {
- // Recode the user's name as UTF-8, in case it tqcontains
+ // Recode the user's name as UTF-8, in case it contains
// non-ASCII chars (e.g. "Kr�ger" is encoded as "Krüger").
s2 << (const char *) thisUser.utf8();
s2 << (TQ_INT16) level;
@@ -1090,7 +1090,7 @@ void KGrGame::checkHighScore()
high1.close();
}
else {
- // Recode the user's name as UTF-8, in case it tqcontains
+ // Recode the user's name as UTF-8, in case it contains
// non-ASCII chars (e.g. "Kr�ger" is encoded as "Krüger").
s2 << (const char *) thisUser.utf8();
s2 << (TQ_INT16) level;
@@ -2496,9 +2496,9 @@ bool KGrGame::loadCollections (Owner o)
line = line.simplifyWhiteSpace();
int i, j, len;
len = line.length();
- i = 0; j = line.tqfind(' ',i); nLevels = line.left(j).toInt();
- i = j+1; j = line.tqfind(' ',i); settings = line[i];
- i = j+1; j = line.tqfind(' ',i); prefix = line.mid(i,j-i);
+ i = 0; j = line.find(' ',i); nLevels = line.left(j).toInt();
+ i = j+1; j = line.find(' ',i); settings = line[i];
+ i = j+1; j = line.find(' ',i); prefix = line.mid(i,j-i);
i = j+1; name = line.right(len-i);
}
// If first character is not a digit, the line should be an "about".