- minor cleanups bugs in hiscore routines

This commit is contained in:
Rob Pearce 2008-10-23 06:16:14 +00:00
parent 0158ccf4c1
commit 55d1de8340
1 changed files with 3 additions and 3 deletions

6
rc.c
View File

@ -7674,8 +7674,8 @@ int submithiscore(int score,int level, char *name) {
p2 = newtext; p2 = newtext;
for (p = name ; *p != '\0'; p++) { for (p = name ; *p != '\0'; p++) {
if (*p == ' ') { if (*p == ' ') {
*p2 = '%'; *p2++; *p2 = '%'; p2++;
*p2 = '2'; *p2++; *p2 = '2'; p2++;
*p2 = '0'; *p2 = '0';
} else { } else {
*p2 = *p; *p2 = *p;
@ -7997,7 +7997,7 @@ void checkhiscores(void){
} else { } else {
playfx(FX_POWERUP); playfx(FX_POWERUP);
} }
if (keyval == ' ') { if (curlet == ' ') {
// next letter is a capital // next letter is a capital
capital = B_TRUE; capital = B_TRUE;
} else { } else {