From 435331e97e8171f416f304b26a4a84f11f1b47a2 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Mon, 18 Apr 2005 07:09:00 +0000 Subject: [PATCH] Update version to 2.01, remote the last traces of a local console display while not in a local screen. --- src/doors/smurfcombat/smurf.c | 22 +++++++++++----------- src/doors/smurfcombat/smurfdat.d0k | 5 ++--- src/doors/smurfcombat/smurfdxx.c | 27 ++++++++++++++++++++++++++- src/doors/smurfcombat/smurfkey.c | 8 ++++---- src/doors/smurfcombat/smurfver.h | 20 ++++++++++---------- 5 files changed, 53 insertions(+), 29 deletions(-) diff --git a/src/doors/smurfcombat/smurf.c b/src/doors/smurfcombat/smurf.c index c8327a8a4d..9fe2f357d1 100644 --- a/src/doors/smurfcombat/smurf.c +++ b/src/doors/smurfcombat/smurf.c @@ -33,9 +33,7 @@ protov(void) od_set_color(3, 0); od_printf("OMBAT "); od_set_color(11, 0); - od_printf("2.xx %s ", __version); - od_set_color(3, 0); - od_printf("(Trial Release) "); + od_printf("v%s ", __version); od_set_color(11, 0); od_printf("**********!\n\r"); od_set_color(15, 0); @@ -59,21 +57,23 @@ protov(void) od_set_color(7, 0); od_printf("aar\n\n\r"); - /* od_set_color(7,0); od_printf("Program: "); - * - * if(statis) od_printf("Registered\n\r"); else - * od_printf("Unregistered\n\r"); - * - * od_printf("Interbbs: n/a (Local Game Only)\n\r"); - * - * od_printf("Synchronet: n/a (Project Discontinued)\n\n\r"); */ + od_set_color(7,0); od_printf("Program: "); + + if(statis) od_printf("Registered\n\r"); else + od_printf("Unregistered\n\r"); + + od_printf("Interbbs: n/a (Local Game Only)\n\r"); + + od_printf("Synchronet: n/a (Project Discontinued)\n\n\r"); +/* od_set_color(7, 0); od_printf("This version is intended to be run SysOps who wish to participate in the M.E.\n\r"); od_printf("game testing program. You will be automatically listed as an OFFICIAL site in\n\r"); od_printf("our next release upon report of ANY program malfunction. Simply report the\n\r"); od_printf("nature and location of the error. Not only will your BBS be advertised nation\n\r"); od_printf("wide, but you will be able to enjoy error free games!\n\r"); +*/ od_set_color(15, 0); od_printf("Laurence Maar (909)861-1616. 1415 Valeview Dr. Diamond Bar, CA 91765-4337\n\n\r"); diff --git a/src/doors/smurfcombat/smurfdat.d0k b/src/doors/smurfcombat/smurfdat.d0k index c305835e10..611d97b2ae 100644 --- a/src/doors/smurfcombat/smurfdat.d0k +++ b/src/doors/smurfcombat/smurfdat.d0k @@ -1,6 +1,6 @@ [40m[2J[0mo...........................................................................o o[75Co -o [1m***** Smurf Combat 2.xx DELTAxx ***** [36C[0mo +o [1m***** Smurf Combat 2.xx ***** [44C[0mo o[75Co o [1;36mThe prerequisite for winning this game is [now]:[26C[0mo o[6C[1;36m100,000,000 Experience Points + Defeat of Grandpa Smurf[14C[0mo @@ -14,8 +14,7 @@ o[75Co o [1;36mReport any instances of program malfunction immediately to Maartian Ent. [0mo o [1;36mLaurence Maar (909)861-1616 1415 Valeview Dr. Diamond Bar, CA 91765. [0mo o[75Co -o [1;36mPlease limit number of copies in distribution. [6C[0mo o [1;36mYour karma will reflect your efforts. [6C[0mo o[75Co o...........................................................................o -[0m[255D \ No newline at end of file +[0m[255D diff --git a/src/doors/smurfcombat/smurfdxx.c b/src/doors/smurfcombat/smurfdxx.c index 7e133b8b3c..162cee3384 100644 --- a/src/doors/smurfcombat/smurfdxx.c +++ b/src/doors/smurfcombat/smurfdxx.c @@ -108,6 +108,7 @@ __DAY__main(void) int hostage[1000], holder[1000], hcount; getdate(&d); +#ifdef TODO_LOCAL_DISPLAY textcolor(12); cprintf("\n S M U R F C O M B A T\n\n\r"); textcolor(10); @@ -126,6 +127,7 @@ __DAY__main(void) od_sleep(200); textcolor(14); cprintf("Success.\n\r"); +#endif sprintf(newdate, "%02d%02d%04d", d.da_day, d.da_mon, d.da_year); stream = fopen("smurf.cfg", "r+"); fscanf(stream, "%3s", intext); @@ -140,12 +142,15 @@ __DAY__main(void) fprintf(stream, "%8s", newdate); fprintf(stream, "\n\r\n\r1. Arena Rounds/Day ###\n\r2. Turns/Day ###\n\r3. Last Ran Date DDMMYYYY\n\r"); fclose(stream); +#ifdef TODO_LOCAL_DISPLAY textcolor(13); cprintf("Loading Smurf Players: "); od_sleep(200); textcolor(14); +#endif loadgame(); backgame(); +#ifdef TODO_LOCAL_DISPLAY cprintf("Success.\n\r"); textcolor(13); cprintf("Loading Hostage Intellegence: "); @@ -156,6 +161,7 @@ __DAY__main(void) cprintf("."); } cprintf("Success.\n\r"); +#endif stream = fopen("smurf.hst", "r+"); cyc = 0; @@ -177,8 +183,10 @@ __DAY__main(void) } } +#ifdef TODO_LOCAL_DISPLAY textcolor(13); cprintf("Reseting Variables: "); +#endif stream = fopen("smurf.hst", "a+"); fclose(stream); @@ -214,6 +222,7 @@ __DAY__main(void) fclose(stream); sleep(1); +#ifdef TODO_LOCAL_DISPLAY textcolor(14); for (cyc = 0; cyc < noplayers; cyc++) { od_sleep(50); @@ -226,6 +235,7 @@ __DAY__main(void) cprintf("Animating Cpu Players: "); od_sleep(100); textcolor(14); +#endif for (cyc = 0; cyc < noplayers; cyc++) { if (realnumb[cyc] == 0) { @@ -250,11 +260,15 @@ __DAY__main(void) fclose(logstream); hostage[cyc2] = 255; holder[cyc2] = 255; +#ifdef TODO_LOCAL_DISPLAY od_sleep(200); cprintf("$"); +#endif } +#ifdef TODO_LOCAL_DISPLAY od_sleep(200); cprintf("@"); +#endif for (cyc3 = 0; cyc3 < turnsaday; cyc3++) { mod = smurflevel[cyc] / 2; if (mod < 1) @@ -270,13 +284,18 @@ __DAY__main(void) __DAY__checklevel(); } } else { +#ifdef TODO_LOCAL_DISPLAY od_sleep(50); cprintf("."); +#endif } - } cprintf("Success.\n\r"); + } +#ifdef TODO_LOCAL_DISPLAY + cprintf("Success.\n\r"); textcolor(13); cprintf("Saving Player Game File: "); +#endif stream = fopen("smurf.hst", "w+"); fprintf(stream, "255255"); for (cyc = 0; cyc < hcount; cyc++) @@ -296,6 +315,7 @@ __DAY__main(void) } while (feof(stream) == 0); fclose(stream); +#ifdef TODO_LOCAL_DISPLAY od_sleep(200); /* stream = fopen("smurf.log", * "a+");fprintf(stream, "SPAWN:) * Logon Maintenance.\n\r"); @@ -304,8 +324,11 @@ __DAY__main(void) cprintf("Success.\n\r"); textcolor(13); cprintf("Writing Today Log File: "); +#endif stream = fopen("smurf.new", "w+"); +#ifdef TODO_LOCAL_DISPLAY od_sleep(200); +#endif for (cyc = 0; cyc < noplayers; cyc++) { if (realnumb[cyc] == 0) { if (gain[cyc] > 0) @@ -318,9 +341,11 @@ __DAY__main(void) } fclose(stream); savegame(); +#ifdef TODO_LOCAL_DISPLAY textcolor(14); cprintf("Success.\n\r"); /* stream = fopen("smurf.log", * "a+");fprintf(stream, "SPAWN:) * Disconnect Maintenance.\n\r"); * fclose(stream); */ +#endif } diff --git a/src/doors/smurfcombat/smurfkey.c b/src/doors/smurfcombat/smurfkey.c index f58202a596..0d1036e373 100644 --- a/src/doors/smurfcombat/smurfkey.c +++ b/src/doors/smurfcombat/smurfkey.c @@ -28,10 +28,10 @@ main() textcolor(11); cprintf(" Programme Code : "); - gets(temp_string); + cgets(temp_string); security_code = atoi(temp_string); cprintf(" Repetez : "); - gets(temp_string); + cgets(temp_string); security_verification = atoi(temp_string); if (security_code != security_verification) { printf("\nCodes ne match pas!\n"); @@ -39,9 +39,9 @@ main() } textcolor(11); cprintf(" Individule Nom : "); - gets(registration_string); + cgets(registration_string); cprintf(" Repetez : "); - gets(registration_verification); + cgets(registration_verification); if (strcmp(registration_string, registration_verification) != 0) { printf("\nStrings ne match pas!\n"); return (1); diff --git a/src/doors/smurfcombat/smurfver.h b/src/doors/smurfcombat/smurfver.h index 4b520dddbb..ad9f28b453 100644 --- a/src/doors/smurfcombat/smurfver.h +++ b/src/doors/smurfcombat/smurfver.h @@ -1,13 +1,13 @@ -char *__version = "DELTA1A"; -char *__vspace = " "; -char *__saveversion = "v177v"; -char *__vnew = "BETA"; -char *__vnewsp = ""; -char *__vday = "BETA"; +char *__version = "2.01"; +char *__vspace = " "; +char *__saveversion = "v201v"; +char *__vnew = "2.01"; +char *__vnewsp = " "; +char *__vday = "2.01"; char *__vdaysp = ""; -char *__vcnv = "BETA"; -char *__vcnvsp = ""; -char *__vkey = "1.0"; +char *__vcnv = "2.01"; +char *__vcnvsp = " "; +char *__vkey = "2.01"; char *__vkeysp = " "; -char *__vlog = "1.0"; +char *__vlog = "2.01"; char *__vlogsp = " "; -- GitLab