$NetBSD: patch-ab,v 1.1.1.1 2004/10/14 12:28:03 adam Exp $ --- hiscore.c.orig 1998-01-16 19:50:39.000000000 +0000 +++ hiscore.c @@ -47,7 +47,7 @@ extern int widths[NLEVELS], /*+ widt nbombs[NLEVELS]; /*+ number of bombs. +*/ /*+ The names of the high score tables. +*/ -static char *filenames[NTYPES]={"/var/tmp/xbomb6.hi","/var/tmp/xbomb4.hi","/var/tmp/xbomb3.hi"}; +static char *filenames[NTYPES]={SCORE_PATH"/xbomb6.hi",SCORE_PATH"/xbomb4.hi",SCORE_PATH"/xbomb3.hi"}; /*+ The names of the positions in the high score tables. +*/ static char pos[11][5]={"Top","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","Lost"}; @@ -131,7 +131,7 @@ void AddHighScore(int ticks) which_hiscore=10; score[grid_level-GAME_LEVEL][10]=ticks; - cuserid(name[grid_level-GAME_LEVEL][10]); + strcpy(name[grid_level-GAME_LEVEL][10], getlogin()); date[grid_level-GAME_LEVEL][10]=time(NULL); for(j=0;j<10;j++) @@ -147,7 +147,7 @@ void AddHighScore(int ticks) date[grid_level-GAME_LEVEL][j]=date[grid_level-GAME_LEVEL][j-1]; } score[grid_level-GAME_LEVEL][changed]=ticks; - cuserid(name[grid_level-GAME_LEVEL][changed]); + strcpy(name[grid_level-GAME_LEVEL][changed], getlogin()); date[grid_level-GAME_LEVEL][changed]=time(NULL); save_high_scores();