meulenbr@cst.UUCP (Frans Meulenbroeks) (11/23/88)
Hi! Here are the patches for wanderer 2.2. The game was posted to comp.sources.games recently. You'll need curses for this. For further info read the README.MINIX file. Enjoy! Frans Meulenbroeks. echo x - README.MINIX gres '^X' '' > README.MINIX << '/' XHow to get wanderer release 2.2 running under Minix/ST X- get the wanderer 2.2 sources X- get a curses X- you'll also need an srand in your lib. X I posted one a few days ago. X- apply the patches supplied X- add -DNOSTRUCTCOPY to the CFLAGS entry in the Makefile X- Do everything needed in the wanderer readme file X (take care to define all paths properly) X- make X- install screens and binary X- play X XNotes: no guarantee. X Might run on a PC, only tested on an ST. X Don't ask me for the wanderer sources. X They were posted to comp.sources.games only a short time ago. X Otherwise ask a friendly neighbour or server. X XNovember 1988, Frans Meulenbroeks./ echo x - m.c.cdiff gres '^X' '' > m.c.cdiff << '/' X*** m.c.orig Tue Nov 22 20:55:11 1988 X--- m.c Tue Nov 22 20:56:59 1988 X*************** X*** 1,7 **** X #include "wand_head.h" X X extern char *playscreen(); X! X extern int rscreen(); X X extern int savescore(); X--- 1,7 ---- X #include "wand_head.h" X X extern char *playscreen(); X! extern char *getenv(); X extern int rscreen(); X X extern int savescore(); X*************** X*** 93,103 **** X close(fp); X } X X! if((name = (char *)getenv("NEWNAME")) == NULL) X! if((name = (char *)getenv("NAME")) == NULL) X! if((name = (char *)getenv("FULLNAME")) == NULL) X! if((name = (char *)getenv("USER")) == NULL) X! if((name = (char *)getenv("LOGNAME")) == NULL) X #ifdef ASKNAME /* M001 */ X { X name = malloc(80); X--- 93,103 ---- X close(fp); X } X X! if((name = getenv("NEWNAME")) == NULL) X! if((name = getenv("NAME")) == NULL) X! if((name = getenv("FULLNAME")) == NULL) X! if((name = getenv("USER")) == NULL) X! if((name = getenv("LOGNAME")) == NULL) X #ifdef ASKNAME /* M001 */ X { X name = malloc(80); X*************** X*** 114,120 **** X name = "noname"; X #endif X X! if((keys = (char *)getenv("NEWKEYS")) == NULL) X { X keys = malloc(5); X strcpy(keys,"kjhl"); X--- 114,120 ---- X name = "noname"; X #endif X X! if((keys = getenv("NEWKEYS")) == NULL) X { X keys = malloc(5); X strcpy(keys,"kjhl"); / echo x - scores.c.cdiff gres '^X' '' > scores.c.cdiff << '/' X*** scores.c.orig Tue Nov 22 20:57:32 1988 X--- scores.c Tue Nov 22 21:33:01 1988 X*************** X*** 28,33 **** X--- 28,47 ---- X int uid; X } score_entry; X X+ #ifdef NOSTRUCTCOPY X+ void structcopy(s1, s2) X+ /* copies s2 to s1 */ X+ score_entry *s1, *s2; X+ { X+ strcpy(s1->howdead, s2->howdead); X+ strcpy(s1->name, s2->name); X+ strcpy(s1->name, s2->name); X+ s1->score = s2->score; X+ s1->level = s2->level; X+ s1->uid = s2->uid; X+ } X+ #endif X+ X #ifdef LINT_ARGS /* M001 */ X void show_scores(score_entry *,int ); X int readtable(score_entry *); X*************** X*** 149,157 **** X--- 163,177 ---- X while(index < numread) X { X /* swap *table_ptr and new_entry */ X+ #ifdef NOSTRUCTCOPY X+ structcopy(&temp_entry, table_ptr); X+ structcopy(table_ptr, &new_entry); X+ structcopy(&new_entry, &temp_entry); X+ #else X temp_entry = *table_ptr; X *table_ptr = new_entry; X new_entry = temp_entry; X+ #endif X if(SAMEUSER(&new_entry)) X { X already = 1; / -- Frans Meulenbroeks (meulenbr@cst.prl.philips.nl) Centre for Software Technology ( or try: ...!mcvax!philmds!prle!cst!meulenbr)