From e2516eaad9f39b96e161bc0f0dcdc63cc14e03ee Mon Sep 17 00:00:00 2001 From: stpohle Date: Sun, 4 May 2003 13:21:24 +0000 Subject: [PATCH] changed selectplayer to askplayername --- src/bomberclone.h | 12 ++++++------ src/configuration.c | 17 ++++++++--------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/bomberclone.h b/src/bomberclone.h index 50c6073..7979869 100644 --- a/src/bomberclone.h +++ b/src/bomberclone.h @@ -7,25 +7,27 @@ #include #include #include -#include #include -#include -#include #include #include #ifdef _WIN32 #include #else +#include #include #include #include #include +#include +#include #endif #include #include "../config.h" #include "gfx.h" #include "network.h" + + struct __playerilness { int to; // if (to > 0) the ilness is still working int data; @@ -126,9 +128,7 @@ struct __bomberclone { char gamename[LEN_GAMENAME]; // this will hold the game name char gamemaster[LEN_SERVERNAME + LEN_PORT + 2]; // ** CONFIG ... GameMaster Address unsigned char notifygamemaster; - signed char net_pkgsend_to; - signed char net_pkgsend_set; // ** CONFIG - unsigned char selectplayer; // ask player for name at startup + unsigned char askplayername; // ask player for name at startup signed char debug; // 0 = off 1 = on } typedef _bomberclone; diff --git a/src/configuration.c b/src/configuration.c index a236a15..f4ff575 100644 --- a/src/configuration.c +++ b/src/configuration.c @@ -32,14 +32,13 @@ game_init () bman.maxplayer = MAX_PLAYERS; bman.net_ai_family = PF_INET; - bman.net_pkgsend_set = 2; bman.gamename[0] = 0; sprintf (bman.port, "%d", DEFAULT_UDPPORT); sprintf (bman.gamemaster, DEFAULT_GAMEMASTER); resend_cache.data = NULL; resend_cache.fill = -1; bman.notifygamemaster = 1; - bman.selectplayer = 1; + bman.askplayername = 1; debug = 0; gfx.res.x = 640; gfx.res.y = 480; @@ -122,8 +121,8 @@ ReadConfig () strcpy (bman.gamename, value); } - if (!strcmp (keyword, "selectplayer")) { - bman.selectplayer = atoi (value); + if (!strcmp (keyword, "askplayername")) { + bman.askplayername = atoi (value); } if (!strcmp (keyword, "resolutionx")) { gfx.res.x = atoi (value); @@ -195,7 +194,7 @@ WriteConfig () for (i = 0; i < MAX_SERVERENTRYS; i++) fprintf (config, "ip%d=%s\n", i, bman.serverlist[i].name); fprintf (config, "debug=%d\n", debug); - fprintf (config, "selectplayer=%d\n", bman.selectplayer); + fprintf (config, "askplayername=%d\n", bman.askplayername); fprintf (config, "playername=%s\n", bman.playername); fprintf (config, "bitsperpixel=%d\n", gfx.bpp); @@ -313,7 +312,7 @@ configuration () else sprintf (menu[6].text, "Debug Messages OFF"); - if (bman.selectplayer == 1) + if (bman.askplayername == 1) sprintf (menu[6].text, "Prompt For Name: Yes"); else sprintf (menu[6].text, "Prompt For Name: No"); @@ -355,10 +354,10 @@ configuration () break; case (6): // Debugging On / Off - if (bman.selectplayer == 1) - bman.selectplayer = 0; + if (bman.askplayername == 1) + bman.askplayername = 0; else - bman.selectplayer = 1; + bman.askplayername = 1; break; case (7): // Debugging On / Off if (debug == 1)