Subversion Repositories HelenOS

Rev

Rev 4264 | Rev 4268 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4264 Rev 4266
Line 129... Line 129...
129
    kbd_event_t ev;
129
    kbd_event_t ev;
130
   
130
   
131
    clear_screen();
131
    clear_screen();
132
    moveto(10 , 10);
132
    moveto(10 , 10);
133
    puts("Insert your name: ");
133
    puts("Insert your name: ");
134
    strncpy(scores[NUMSPOTS - 1].hs_name, "Player", MAXLOGNAME);
134
    str_ncpy(scores[NUMSPOTS - 1].hs_name, "Player", MAXLOGNAME);
135
    i = 6; off = 6;
135
    i = 6; off = 6;
136
 
136
 
137
    moveto(10 , 28);
137
    moveto(10 , 28);
138
    printf("%s%.*s",scores[NUMSPOTS - 1].hs_name,MAXLOGNAME-i,"........................................");
138
    printf("%s%.*s",scores[NUMSPOTS - 1].hs_name,MAXLOGNAME-i,"........................................");
139
 
139
 
Line 193... Line 193...
193
 
193
 
194
void initscores(void)
194
void initscores(void)
195
{
195
{
196
    int i;
196
    int i;
197
    for(i = 0; i < NUMSPOTS; i++) {
197
    for(i = 0; i < NUMSPOTS; i++) {
198
        strncpy(scores[i].hs_name, "HelenOS Team", MAXLOGNAME);
198
        str_ncpy(scores[i].hs_name, "HelenOS Team", MAXLOGNAME);
199
        scores[i].hs_score = (NUMSPOTS - i) * 200; 
199
        scores[i].hs_score = (NUMSPOTS - i) * 200; 
200
        scores[i].hs_level = (i + 1 > MAXLEVEL?MAXLEVEL:i + 1);
200
        scores[i].hs_level = (i + 1 > MAXLEVEL?MAXLEVEL:i + 1);
201
    }
201
    }
202
}
202
}
203
 
203