mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 17:31:00 +00:00
SW: Comment out unused vars, which would become
used if previously commented out code was uncommented (including a few instances of uninitialized var reads). git-svn-id: https://svn.eduke32.com/eduke32@8686 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/sw/src/brooms.cpp # source/sw/src/cheats.cpp # source/sw/src/draw.cpp # source/sw/src/game.cpp # source/sw/src/jnstub.cpp # source/sw/src/menus.cpp # source/sw/src/rts.cpp # source/sw/src/sector.cpp # source/sw/src/setup.cpp # source/sw/src/sounds.cpp # source/sw/src/weapon.cpp
This commit is contained in:
parent
896de8aa1c
commit
d55871927a
19 changed files with 69 additions and 70 deletions
|
@ -1312,7 +1312,7 @@ void
|
|||
DoPlayerTeleportPause(PLAYERp pp)
|
||||
{
|
||||
USERp u = User[pp->PlayerSprite];
|
||||
SPRITEp sp = pp->SpriteP;
|
||||
// SPRITEp sp = pp->SpriteP;
|
||||
|
||||
// set this so we don't get stuck in teleporting loop
|
||||
pp->lastcursectnum = pp->cursectnum;
|
||||
|
@ -3772,7 +3772,7 @@ DoPlayerFall(PLAYERp pp)
|
|||
void
|
||||
DoPlayerBeginClimb(PLAYERp pp)
|
||||
{
|
||||
USERp u = User[pp->PlayerSprite];
|
||||
// USERp u = User[pp->PlayerSprite];
|
||||
SPRITEp sp = pp->SpriteP;
|
||||
|
||||
RESET(pp->Flags, PF_JUMPING|PF_FALLING);
|
||||
|
@ -4303,7 +4303,7 @@ DoPlayerCrawl(PLAYERp pp)
|
|||
void
|
||||
DoPlayerBeginFly(PLAYERp pp)
|
||||
{
|
||||
USERp u = User[pp->PlayerSprite];
|
||||
// USERp u = User[pp->PlayerSprite];
|
||||
|
||||
RESET(pp->Flags, PF_FALLING | PF_JUMPING | PF_CRAWLING);
|
||||
SET(pp->Flags, PF_FLYING);
|
||||
|
@ -6390,8 +6390,6 @@ DoPlayerBeginDie(PLAYERp pp)
|
|||
DoPlayerDeathDrown,
|
||||
};
|
||||
|
||||
short random;
|
||||
|
||||
#define PLAYER_DEATH_TILT_VALUE (32)
|
||||
#define PLAYER_DEATH_HORIZ_UP_VALUE (165)
|
||||
#define PLAYER_DEATH_HORIZ_JUMP_VALUE (150)
|
||||
|
@ -6434,6 +6432,8 @@ DoPlayerBeginDie(PLAYERp pp)
|
|||
RESET(pp->Flags, PF_JUMPING|PF_FALLING|PF_DIVING|PF_FLYING|PF_CLIMBING|PF_CRAWLING|PF_LOCK_CRAWL);
|
||||
|
||||
#if 0
|
||||
short random;
|
||||
|
||||
// get tilt value
|
||||
random = RANDOM_P2(1024);
|
||||
if (random < 128)
|
||||
|
@ -7795,10 +7795,11 @@ void
|
|||
domovethings(void)
|
||||
{
|
||||
extern SWBOOL DebugAnim;
|
||||
#if DEBUG
|
||||
extern SWBOOL DebugPanel;
|
||||
#endif
|
||||
extern SWBOOL DebugSector;
|
||||
extern SWBOOL DebugActorFreeze;
|
||||
extern SWBOOL ResCheat;
|
||||
extern int PlayClock;
|
||||
short i, pnum;
|
||||
extern SWBOOL GamePaused;
|
||||
|
@ -7886,6 +7887,7 @@ domovethings(void)
|
|||
|
||||
|
||||
#if 0 // has been moved to draw code
|
||||
extern SWBOOL ResCheat;
|
||||
if (ResCheat)
|
||||
{
|
||||
ResCheat = FALSE;
|
||||
|
@ -7934,7 +7936,6 @@ domovethings(void)
|
|||
extern short screenpeek;
|
||||
extern SWBOOL PlayerTrackingMode;
|
||||
extern PLAYERp GlobPlayerP;
|
||||
extern SWBOOL ScrollMode2D;
|
||||
|
||||
pp = Player + pnum;
|
||||
GlobPlayerP = pp;
|
||||
|
@ -7962,6 +7963,7 @@ domovethings(void)
|
|||
DoPlayerSectorUpdatePreMove(pp);
|
||||
ChopsCheck(pp);
|
||||
|
||||
// extern SWBOOL ScrollMode2D;
|
||||
//if (!ScrollMode2D)
|
||||
if (pp->DoPlayerAction) pp->DoPlayerAction(pp);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue