diff --git a/src/filesrch.c b/src/filesrch.c index 93c3a9fe5..d132e9fb4 100644 --- a/src/filesrch.c +++ b/src/filesrch.c @@ -16,12 +16,16 @@ #ifdef __GNUC__ #include #endif -#ifdef _WIN32 +#if defined (_WIN32) && !defined (_XBOX) //#define WIN32_LEAN_AND_MEAN #define RPC_NO_WINDOWS_H #include #endif +#ifdef _WIN32_WCE +#include "sdl12/SRB2CE/cehelp.h" +#else #include +#endif #include #include "filesrch.h" @@ -30,7 +34,7 @@ #include "z_zone.h" #include "m_menu.h" // Addons_option_Onchange -#if defined (_WIN32) && defined (_MSC_VER) +#if (defined (_WIN32) && !defined (_WIN32_WCE)) && defined (_MSC_VER) && !defined (_XBOX) #include #include @@ -338,7 +342,6 @@ UINT8 refreshdirmenu = 0; char *refreshdirname = NULL; -<<<<<<< HEAD #if defined (_XBOX) && defined (_MSC_VER) filestatus_t filesearch(char *filename, const char *startpath, const UINT8 *wantedmd5sum, boolean completepath, int maxsearchdepth) @@ -442,8 +445,6 @@ boolean preparefilemenu(boolean samedepth, boolean replayhut) #else -======= ->>>>>>> srb2/next filestatus_t filesearch(char *filename, const char *startpath, const UINT8 *wantedmd5sum, boolean completepath, int maxsearchdepth) { filestatus_t retval = FS_NOTFOUND; @@ -472,9 +473,9 @@ filestatus_t filesearch(char *filename, const char *startpath, const UINT8 *want return FS_NOTFOUND; } - if (searchpath[searchpathindex[depthleft]-2] != PATHSEP[0]) + if (searchpath[searchpathindex[depthleft]-2] != '/') { - searchpath[searchpathindex[depthleft]-1] = PATHSEP[0]; + searchpath[searchpathindex[depthleft]-1] = '/'; searchpath[searchpathindex[depthleft]] = 0; } else @@ -516,7 +517,7 @@ filestatus_t filesearch(char *filename, const char *startpath, const UINT8 *want depthleft++; } - searchpath[searchpathindex[depthleft]-1]=PATHSEP[0]; + searchpath[searchpathindex[depthleft]-1]='/'; searchpath[searchpathindex[depthleft]]=0; } else if (!strcasecmp(searchname, dent->d_name)) @@ -865,20 +866,13 @@ boolean preparefilemenu(boolean samedepth, boolean replayhut) ext |= EXT_LOADED; } } -<<<<<<< HEAD else if (ext == EXT_TXT) { - if (!strncmp(dent->d_name, "log-", 4) || !strcmp(dent->d_name, "errorlog.txt")) + if (!strcmp(dent->d_name, "log.txt") || !strcmp(dent->d_name, "errorlog.txt")) ext |= EXT_LOADED; } if (!strcmp(dent->d_name, configfile)) -======= - } - else if (ext == EXT_TXT) - { - if (!strncmp(dent->d_name, "log-", 4) || !strcmp(dent->d_name, "errorlog.txt")) ->>>>>>> srb2/next ext |= EXT_LOADED; } @@ -927,3 +921,5 @@ boolean preparefilemenu(boolean samedepth, boolean replayhut) return true; } + +#endif diff --git a/src/p_saveg.c b/src/p_saveg.c index b9ef562bf..bd0fd3c6d 100644 --- a/src/p_saveg.c +++ b/src/p_saveg.c @@ -272,7 +272,6 @@ static void P_NetArchivePlayers(void) if (flags & AWAYVIEW) WRITEUINT32(save_p, players[i].awayviewmobj->mobjnum); -<<<<<<< HEAD WRITEUINT32(save_p, players[i].charflags); // SRB2kart WRITEUINT8(save_p, players[i].kartspeed); @@ -292,35 +291,11 @@ static void P_NetArchivePlayers(void) WRITEUINT32(save_p, players[i].botvars.itemdelay); WRITEUINT32(save_p, players[i].botvars.itemconfirm); WRITESINT8(save_p, players[i].botvars.turnconfirm); -======= if (flags & FOLLOW) WRITEUINT32(save_p, players[i].followmobj->mobjnum); if (flags & DRONE) WRITEUINT32(save_p, players[i].drone->mobjnum); - - WRITEFIXED(save_p, players[i].camerascale); - WRITEFIXED(save_p, players[i].shieldscale); - - WRITEUINT8(save_p, players[i].charability); - WRITEUINT8(save_p, players[i].charability2); - WRITEUINT32(save_p, players[i].charflags); - WRITEUINT32(save_p, (UINT32)players[i].thokitem); - WRITEUINT32(save_p, (UINT32)players[i].spinitem); - WRITEUINT32(save_p, (UINT32)players[i].revitem); - WRITEUINT32(save_p, (UINT32)players[i].followitem); - WRITEFIXED(save_p, players[i].actionspd); - WRITEFIXED(save_p, players[i].mindash); - WRITEFIXED(save_p, players[i].maxdash); - WRITEFIXED(save_p, players[i].normalspeed); - WRITEFIXED(save_p, players[i].runspeed); - WRITEUINT8(save_p, players[i].thrustfactor); - WRITEUINT8(save_p, players[i].accelstart); - WRITEUINT8(save_p, players[i].acceleration); - WRITEFIXED(save_p, players[i].jumpfactor); - WRITEFIXED(save_p, players[i].height); - WRITEFIXED(save_p, players[i].spinheight); ->>>>>>> srb2/next } } @@ -490,22 +465,17 @@ static void P_NetUnArchivePlayers(void) if (flags & AWAYVIEW) players[i].awayviewmobj = (mobj_t *)(size_t)READUINT32(save_p); -<<<<<<< HEAD players[i].viewheight = 32<>>>>>> srb2/next - //SetPlayerSkinByNum(i, players[i].skin); players[i].charflags = READUINT32(save_p); -<<<<<<< HEAD + // SRB2kart players[i].kartspeed = READUINT8(save_p); players[i].kartweight = READUINT8(save_p); @@ -1122,22 +1092,11 @@ static void ArchiveLines(void) if (si->textureoffset != spawnsi->textureoffset) diff |= LD_S1TEXOFF; //SoM: 4/1/2000: Some textures are colormaps. Don't worry about invalid textures. -<<<<<<< HEAD - if (R_CheckTextureNumForName(msd[li->sidenum[0]].toptexture) != -1 - && si->toptexture != R_TextureNumForName(msd[li->sidenum[0]].toptexture)) - diff |= LD_S1TOPTEX; - if (R_CheckTextureNumForName(msd[li->sidenum[0]].bottomtexture) != -1 - && si->bottomtexture != R_TextureNumForName(msd[li->sidenum[0]].bottomtexture)) - diff |= LD_S1BOTTEX; - if (R_CheckTextureNumForName(msd[li->sidenum[0]].midtexture) != -1 - && si->midtexture != R_TextureNumForName(msd[li->sidenum[0]].midtexture)) -======= if (si->toptexture != spawnsi->toptexture) diff |= LD_S1TOPTEX; if (si->bottomtexture != spawnsi->bottomtexture) diff |= LD_S1BOTTEX; if (si->midtexture != spawnsi->midtexture) ->>>>>>> srb2/next diff |= LD_S1MIDTEX; } if (li->sidenum[1] != 0xffff) @@ -1146,22 +1105,11 @@ static void ArchiveLines(void) spawnsi = &spawnsides[li->sidenum[1]]; if (si->textureoffset != spawnsi->textureoffset) diff2 |= LD_S2TEXOFF; -<<<<<<< HEAD - if (R_CheckTextureNumForName(msd[li->sidenum[1]].toptexture) != -1 - && si->toptexture != R_TextureNumForName(msd[li->sidenum[1]].toptexture)) - diff2 |= LD_S2TOPTEX; - if (R_CheckTextureNumForName(msd[li->sidenum[1]].bottomtexture) != -1 - && si->bottomtexture != R_TextureNumForName(msd[li->sidenum[1]].bottomtexture)) - diff2 |= LD_S2BOTTEX; - if (R_CheckTextureNumForName(msd[li->sidenum[1]].midtexture) != -1 - && si->midtexture != R_TextureNumForName(msd[li->sidenum[1]].midtexture)) -======= if (si->toptexture != spawnsi->toptexture) diff2 |= LD_S2TOPTEX; if (si->bottomtexture != spawnsi->bottomtexture) diff2 |= LD_S2BOTTEX; if (si->midtexture != spawnsi->midtexture) ->>>>>>> srb2/next diff2 |= LD_S2MIDTEX; if (diff2) diff |= LD_DIFF2; @@ -1342,22 +1290,15 @@ typedef enum MD2_EXTVAL2 = 1<<6, MD2_HNEXT = 1<<7, MD2_HPREV = 1<<8, -<<<<<<< HEAD MD2_COLORIZED = 1<<9, MD2_WAYPOINTCAP = 1<<10, MD2_KITEMCAP = 1<<11, - MD2_ITNEXT = 1<<12 -#ifdef ESLOPE - , MD2_SLOPE = 1<<13 -#endif -======= - MD2_FLOORROVER = 1<<9, - MD2_CEILINGROVER = 1<<10, - MD2_SLOPE = 1<<11, - MD2_COLORIZED = 1<<12, - MD2_ROLLANGLE = 1<<13, - MD2_SHADOWSCALE = 1<<14, ->>>>>>> srb2/next + MD2_ITNEXT = 1<<12, + MD2_SLOPE = 1<<13, + MD2_FLOORROVER = 1<<14, + MD2_CEILINGROVER = 1<<15, + MD2_ROLLANGLE = 1<<16, + MD2_SHADOWSCALE = 1<<17 } mobj_diff2_t; typedef enum @@ -1518,11 +1459,7 @@ static void SaveMobjThinker(const thinker_t *th, const UINT8 type) diff |= MD_TRACER; if (mobj->friction != ORIG_FRICTION) diff |= MD_FRICTION; -<<<<<<< HEAD if (mobj->movefactor != FRACUNIT) //if (mobj->movefactor != ORIG_FRICTION_FACTOR) -======= - if (mobj->movefactor != FRACUNIT) ->>>>>>> srb2/next diff |= MD_MOVEFACTOR; if (mobj->fuse) diff |= MD_FUSE; @@ -1558,33 +1495,24 @@ static void SaveMobjThinker(const thinker_t *th, const UINT8 type) diff2 |= MD2_HNEXT; if (mobj->hprev) diff2 |= MD2_HPREV; -<<<<<<< HEAD if (mobj->itnext) diff2 |= MD2_ITNEXT; -#ifdef ESLOPE if (mobj->standingslope) diff2 |= MD2_SLOPE; -#endif if (mobj->colorized) diff2 |= MD2_COLORIZED; if (mobj == waypointcap) diff2 |= MD2_WAYPOINTCAP; if (mobj == kitemcap) diff2 |= MD2_KITEMCAP; -======= if (mobj->floorrover) diff2 |= MD2_FLOORROVER; if (mobj->ceilingrover) diff2 |= MD2_CEILINGROVER; - if (mobj->standingslope) - diff2 |= MD2_SLOPE; - if (mobj->colorized) - diff2 |= MD2_COLORIZED; if (mobj->rollangle) diff2 |= MD2_ROLLANGLE; if (mobj->shadowscale) diff2 |= MD2_SHADOWSCALE; ->>>>>>> srb2/next if (diff2 != 0) diff |= MD_MORE; @@ -1715,25 +1643,18 @@ static void SaveMobjThinker(const thinker_t *th, const UINT8 type) WRITEUINT32(save_p, mobj->hnext->mobjnum); if (diff2 & MD2_HPREV) WRITEUINT32(save_p, mobj->hprev->mobjnum); -<<<<<<< HEAD if (diff2 & MD2_ITNEXT) WRITEUINT32(save_p, mobj->itnext->mobjnum); -#ifdef ESLOPE - if (diff2 & MD2_SLOPE) - WRITEUINT16(save_p, mobj->standingslope->id); -#endif - if (diff2 & MD2_COLORIZED) - WRITEUINT8(save_p, mobj->colorized); -======= if (diff2 & MD2_SLOPE) WRITEUINT16(save_p, mobj->standingslope->id); if (diff2 & MD2_COLORIZED) WRITEUINT8(save_p, mobj->colorized); + if (diff2 & MD2_SLOPE) + WRITEUINT16(save_p, mobj->standingslope->id);; if (diff2 & MD2_ROLLANGLE) WRITEANGLE(save_p, mobj->rollangle); if (diff2 & MD2_SHADOWSCALE) WRITEFIXED(save_p, mobj->shadowscale); ->>>>>>> srb2/next WRITEUINT32(save_p, mobj->mobjnum); } @@ -2745,11 +2666,7 @@ static thinker_t* LoadMobjThinker(actionf_p1 thinker) if (diff & MD_MOVEFACTOR) mobj->movefactor = READFIXED(save_p); else -<<<<<<< HEAD mobj->movefactor = FRACUNIT; //mobj->movefactor = ORIG_FRICTION_FACTOR; -======= - mobj->movefactor = FRACUNIT; ->>>>>>> srb2/next if (diff & MD_FUSE) mobj->fuse = READINT32(save_p); if (diff & MD_WATERTOP) @@ -2784,16 +2701,11 @@ static thinker_t* LoadMobjThinker(actionf_p1 thinker) mobj->hnext = (mobj_t *)(size_t)READUINT32(save_p); if (diff2 & MD2_HPREV) mobj->hprev = (mobj_t *)(size_t)READUINT32(save_p); -<<<<<<< HEAD if (diff2 & MD2_ITNEXT) mobj->itnext = (mobj_t *)(size_t)READUINT32(save_p); -#ifdef ESLOPE -======= ->>>>>>> srb2/next if (diff2 & MD2_SLOPE) { mobj->standingslope = P_SlopeById(READUINT16(save_p)); -<<<<<<< HEAD #ifdef HWRENDER mobj->modeltilt = mobj->standingslope; #endif @@ -2801,14 +2713,10 @@ static thinker_t* LoadMobjThinker(actionf_p1 thinker) #endif if (diff2 & MD2_COLORIZED) mobj->colorized = READUINT8(save_p); -======= - if (diff2 & MD2_COLORIZED) - mobj->colorized = READUINT8(save_p); if (diff2 & MD2_ROLLANGLE) mobj->rollangle = READANGLE(save_p); if (diff2 & MD2_SHADOWSCALE) mobj->shadowscale = READFIXED(save_p); ->>>>>>> srb2/next if (diff & MD_REDFLAG) { @@ -2834,7 +2742,6 @@ static thinker_t* LoadMobjThinker(actionf_p1 thinker) mobj->player->viewz = mobj->player->mo->z + mobj->player->viewheight; } -<<<<<<< HEAD P_AddThinker(&mobj->thinker); if (diff2 & MD2_WAYPOINTCAP) @@ -2843,8 +2750,6 @@ static thinker_t* LoadMobjThinker(actionf_p1 thinker) if (diff2 & MD2_KITEMCAP) P_SetTarget(&kitemcap, mobj); -======= ->>>>>>> srb2/next mobj->info = (mobjinfo_t *)next; // temporarily, set when leave this function return &mobj->thinker; @@ -3801,80 +3706,6 @@ static void P_RelinkPointers(void) mobj = (mobj_t *)currentthinker; -<<<<<<< HEAD - if (mobj->tracer) - { - temp = (UINT32)(size_t)mobj->tracer; - mobj->tracer = NULL; - if (!P_SetTarget(&mobj->tracer, P_FindNewPosition(temp))) - CONS_Debug(DBG_GAMELOGIC, "tracer not found on %d\n", mobj->type); - } - if (mobj->target) - { - temp = (UINT32)(size_t)mobj->target; - mobj->target = NULL; - if (!P_SetTarget(&mobj->target, P_FindNewPosition(temp))) - CONS_Debug(DBG_GAMELOGIC, "target not found on %d\n", mobj->type); - } - if (mobj->hnext) - { - temp = (UINT32)(size_t)mobj->hnext; - mobj->hnext = NULL; - if (!(mobj->hnext = P_FindNewPosition(temp))) - CONS_Debug(DBG_GAMELOGIC, "hnext not found on %d\n", mobj->type); - } - if (mobj->hprev) - { - temp = (UINT32)(size_t)mobj->hprev; - mobj->hprev = NULL; - if (!(mobj->hprev = P_FindNewPosition(temp))) - CONS_Debug(DBG_GAMELOGIC, "hprev not found on %d\n", mobj->type); - } - if (mobj->itnext) - { - temp = (UINT32)(size_t)mobj->itnext; - mobj->itnext = NULL; - if (!(mobj->itnext = P_FindNewPosition(temp))) - CONS_Debug(DBG_GAMELOGIC, "itnext not found on %d\n", mobj->type); - } - if (mobj->player && mobj->player->capsule) - { - temp = (UINT32)(size_t)mobj->player->capsule; - mobj->player->capsule = NULL; - if (!P_SetTarget(&mobj->player->capsule, P_FindNewPosition(temp))) - CONS_Debug(DBG_GAMELOGIC, "capsule not found on %d\n", mobj->type); - } - if (mobj->player && mobj->player->axis1) - { - temp = (UINT32)(size_t)mobj->player->axis1; - mobj->player->axis1 = NULL; - if (!P_SetTarget(&mobj->player->axis1, P_FindNewPosition(temp))) - CONS_Debug(DBG_GAMELOGIC, "axis1 not found on %d\n", mobj->type); - } - if (mobj->player && mobj->player->axis2) - { - temp = (UINT32)(size_t)mobj->player->axis2; - mobj->player->axis2 = NULL; - if (!P_SetTarget(&mobj->player->axis2, P_FindNewPosition(temp))) - CONS_Debug(DBG_GAMELOGIC, "axis2 not found on %d\n", mobj->type); - } - if (mobj->player && mobj->player->awayviewmobj) - { - temp = (UINT32)(size_t)mobj->player->awayviewmobj; - mobj->player->awayviewmobj = NULL; - if (!P_SetTarget(&mobj->player->awayviewmobj, P_FindNewPosition(temp))) - CONS_Debug(DBG_GAMELOGIC, "awayviewmobj not found on %d\n", mobj->type); - } - if (mobj->player && mobj->player->nextwaypoint) - { - temp = (UINT32)(size_t)mobj->player->nextwaypoint; - mobj->player->nextwaypoint = K_GetWaypointFromIndex(temp); - if (mobj->player->nextwaypoint == NULL) - { - CONS_Debug(DBG_GAMELOGIC, "nextwaypoint not found on %d\n", mobj->type); - } - } -======= if (mobj->type == MT_HOOP || mobj->type == MT_HOOPCOLLIDE || mobj->type == MT_HOOPCENTER) continue; @@ -3906,6 +3737,13 @@ static void P_RelinkPointers(void) if (!(mobj->hprev = P_FindNewPosition(temp))) CONS_Debug(DBG_GAMELOGIC, "hprev not found on %d\n", mobj->type); } + if (mobj->itnext) + { + temp = (UINT32)(size_t)mobj->itnext; + mobj->itnext = NULL; + if (!(mobj->itnext = P_FindNewPosition(temp))) + CONS_Debug(DBG_GAMELOGIC, "itnext not found on %d\n", mobj->type); + } if (mobj->player && mobj->player->capsule) { temp = (UINT32)(size_t)mobj->player->capsule; @@ -3934,6 +3772,15 @@ static void P_RelinkPointers(void) if (!P_SetTarget(&mobj->player->awayviewmobj, P_FindNewPosition(temp))) CONS_Debug(DBG_GAMELOGIC, "awayviewmobj not found on %d\n", mobj->type); } + if (mobj->player && mobj->player->nextwaypoint) + { + temp = (UINT32)(size_t)mobj->player->nextwaypoint; + mobj->player->nextwaypoint = K_GetWaypointFromIndex(temp); + if (mobj->player->nextwaypoint == NULL) + { + CONS_Debug(DBG_GAMELOGIC, "nextwaypoint not found on %d\n", mobj->type); + } + } if (mobj->player && mobj->player->followmobj) { temp = (UINT32)(size_t)mobj->player->followmobj; @@ -3947,7 +3794,6 @@ static void P_RelinkPointers(void) mobj->player->drone = NULL; if (!P_SetTarget(&mobj->player->drone, P_FindNewPosition(temp))) CONS_Debug(DBG_GAMELOGIC, "drone not found on %d\n", mobj->type); ->>>>>>> srb2/next } } } @@ -4243,13 +4089,9 @@ static inline boolean P_NetUnArchiveMisc(void) tokenlist = READUINT32(save_p); -<<<<<<< HEAD encoremode = (boolean)READUINT8(save_p); - if (!P_SetupLevel(true)) -======= if (!P_LoadLevel(true)) ->>>>>>> srb2/next return false; // get the time @@ -4404,30 +4246,18 @@ void P_SaveNetGame(void) P_NetArchiveMisc(); // Assign the mobjnumber for pointer tracking -<<<<<<< HEAD if (gamestate == GS_LEVEL) { - for (th = thinkercap.next; th != &thinkercap; th = th->next) + for (th = thlist[THINK_MOBJ].next; th != &thlist[THINK_MOBJ]; th = th->next) { - if (th->function.acp1 == (actionf_p1)P_MobjThinker) - { - mobj = (mobj_t *)th; - if (mobj->type == MT_HOOP || mobj->type == MT_HOOPCOLLIDE || mobj->type == MT_HOOPCENTER) - continue; - mobj->mobjnum = i++; - } - } -======= - for (th = thlist[THINK_MOBJ].next; th != &thlist[THINK_MOBJ]; th = th->next) - { - if (th->function.acp1 == (actionf_p1)P_RemoveThinkerDelayed) - continue; + if (th->function.acp1 == (actionf_p1)P_RemoveThinkerDelayed) + continue; - mobj = (mobj_t *)th; - if (mobj->type == MT_HOOP || mobj->type == MT_HOOPCOLLIDE || mobj->type == MT_HOOPCENTER) - continue; - mobj->mobjnum = i++; ->>>>>>> srb2/next + mobj = (mobj_t *)th; + if (mobj->type == MT_HOOP || mobj->type == MT_HOOPCOLLIDE || mobj->type == MT_HOOPCENTER) + continue; + mobj->mobjnum = i++; + } } P_NetArchivePlayers(); @@ -4437,11 +4267,8 @@ void P_SaveNetGame(void) P_ArchivePolyObjects(); P_NetArchiveThinkers(); P_NetArchiveSpecials(); -<<<<<<< HEAD P_NetArchiveWaypoints(); -======= P_NetArchiveColormaps(); ->>>>>>> srb2/next } LUA_Archive(); @@ -4481,11 +4308,7 @@ boolean P_LoadNetGame(void) P_UnArchivePolyObjects(); P_NetUnArchiveThinkers(); P_NetUnArchiveSpecials(); -<<<<<<< HEAD - P_NetUnArchiveWaypoints(); -======= P_NetUnArchiveColormaps(); ->>>>>>> srb2/next P_RelinkPointers(); P_FinishMobjs(); } diff --git a/src/screen.c b/src/screen.c index adb974f6a..67107ed74 100644 --- a/src/screen.c +++ b/src/screen.c @@ -527,15 +527,11 @@ void SCR_DisplayTicRate(void) tic_t i; tic_t ontic = I_GetTime(); tic_t totaltics = 0; -<<<<<<< HEAD - const UINT8 *ticcntcolor = NULL; -======= INT32 ticcntcolor = 0; const INT32 h = vid.height-(8*vid.dupy); if (gamestate == GS_NULL) return; ->>>>>>> srb2/next for (i = lasttic + 1; i < TICRATE+lasttic && i < ontic; ++i) fpsgraph[i % TICRATE] = false; @@ -549,38 +545,25 @@ void SCR_DisplayTicRate(void) if (totaltics <= TICRATE/2) ticcntcolor = R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_RASPBERRY, GTC_CACHE); else if (totaltics == TICRATE) ticcntcolor = R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_MINT, GTC_CACHE); -<<<<<<< HEAD - /*V_DrawString(vid.width-(24*vid.dupx), vid.height-(16*vid.dupy), - V_YELLOWMAP|V_NOSCALESTART, "FPS"); - V_DrawString(vid.width-(40*vid.dupx), vid.height-( 8*vid.dupy), - ticcntcolor|V_NOSCALESTART, va("%02d/%02u", totaltics, TICRATE));*/ - - // draw "FPS" - V_DrawFixedPatch(306<>>>>>> srb2/next lasttic = ontic; } -<<<<<<< HEAD + // SCR_DisplayLocalPing // Used to draw the user's local ping next to the framerate for a quick check without having to hold TAB for instance. By default, it only shows up if your ping is too high and risks getting you kicked. @@ -591,14 +574,6 @@ void SCR_DisplayLocalPing(void) { INT32 dispy = cv_ticrate.value ? 160 : 181; HU_drawPing(307, dispy, ping, V_SNAPTORIGHT | V_SNAPTOBOTTOM | V_HUDTRANS); -======= -void SCR_DisplayLocalPing(void) -{ - UINT32 ping = playerpingtable[consoleplayer]; // consoleplayer's ping is everyone's ping in a splitnetgame :P - if (cv_showping.value == 1 || (cv_showping.value == 2 && servermaxping && ping > servermaxping)) // only show 2 (warning) if our ping is at a bad level - { - INT32 dispy = cv_ticrate.value ? 180 : 189; - HU_drawPing(307, dispy, ping, true, V_SNAPTORIGHT | V_SNAPTOBOTTOM); } }