diff options
author | James Haley | 2011-02-06 17:38:54 +0000 |
---|---|---|
committer | James Haley | 2011-02-06 17:38:54 +0000 |
commit | 17333436188f63319625b007489c7b70029bfaba (patch) | |
tree | abccc36961eb03e46828c5a38f20eb501519f0f8 /src/strife/p_setup.c | |
parent | ab144aa9d30a97f0c3a2d049d624c868aaba3af7 (diff) | |
download | chocolate-doom-17333436188f63319625b007489c7b70029bfaba.tar.gz chocolate-doom-17333436188f63319625b007489c7b70029bfaba.tar.bz2 chocolate-doom-17333436188f63319625b007489c7b70029bfaba.zip |
Numerous fixes/adjustments: removed bodyque, restored "is turbo" (found
it in there after all), removed some dead code in p_dialog, added a
'default: break;' case in EV_VerticalDoor, initialize
player_t::allegiance in P_SetupLevel, minor changes to EV_Teleport,
2nd-pass verification for p_tick, and big fixes in p_user.c including
noclip cheat, viewz clipping against floor, air control thrust amount,
and missing/incorrect else's.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2250
Diffstat (limited to 'src/strife/p_setup.c')
-rw-r--r-- | src/strife/p_setup.c | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/src/strife/p_setup.c b/src/strife/p_setup.c index b1a02b04..694d0185 100644 --- a/src/strife/p_setup.c +++ b/src/strife/p_setup.c @@ -751,20 +751,23 @@ static void P_LoadReject(int lumpnum) // void P_SetupLevel -( int map, - int playermask, - skill_t skill) +( int map, + int playermask, + skill_t skill) { - int i; - char lumpname[9]; - int lumpnum; - - totalkills = totalitems = totalsecret = wminfo.maxfrags = 0; - wminfo.partime = 180; + int i; + char lumpname[9]; + int lumpnum; + + // haleyjd 20110205 [STRIFE]: removed totalitems and wminfo + totalkills = totalsecret = 0; + for (i=0 ; i<MAXPLAYERS ; i++) { - // haleyjd 08/30/10: [STRIFE] Removed secretcount, itemcount - players[i].killcount = 0; + // haleyjd 20100830: [STRIFE] Removed secretcount, itemcount + // 20110205: [STRIFE] Initialize players.allegiance + players[i].allegiance = i; + players[i].killcount = 0; } // Initial height of PointOfView @@ -772,18 +775,18 @@ P_SetupLevel players[consoleplayer].viewz = 1; // Make sure all sounds are stopped before Z_FreeTags. - S_Start (); + S_Start (); #if 0 // UNUSED if (debugfile) { - Z_FreeTags (PU_LEVEL, INT_MAX); - Z_FileDumpHeap (debugfile); + Z_FreeTags (PU_LEVEL, INT_MAX); + Z_FileDumpHeap (debugfile); } else #endif - Z_FreeTags (PU_LEVEL, PU_PURGELEVEL-1); + Z_FreeTags (PU_LEVEL, PU_PURGELEVEL-1); // UNUSED W_Profile (); @@ -813,37 +816,36 @@ P_SetupLevel P_GroupLines (); P_LoadReject (lumpnum+ML_REJECT); - bodyqueslot = 0; + //bodyqueslot = 0; [STRIFE] unused deathmatch_p = deathmatchstarts; P_LoadThings (lumpnum+ML_THINGS); // if deathmatch, randomly spawn the active players if (deathmatch) { - for (i=0 ; i<MAXPLAYERS ; i++) - if (playeringame[i]) - { - players[i].mo = NULL; - G_DeathMatchSpawnPlayer (i); - } - + for (i=0 ; i<MAXPLAYERS ; i++) + if (playeringame[i]) + { + players[i].mo = NULL; + G_DeathMatchSpawnPlayer (i); + } + } // clear special respawning que - iquehead = iquetail = 0; - + iquehead = iquetail = 0; + // set up world state P_SpawnSpecials (); - + // build subsector connect matrix - // UNUSED P_ConnectSubsectors (); + // UNUSED P_ConnectSubsectors (); // preload graphics if (precache) - R_PrecacheLevel (); + R_PrecacheLevel (); //printf ("free memory: 0x%x\n", Z_FreeMemory()); - } |