Clean up stuff I did while debugging

This commit is contained in:
fickleheart 2018-12-26 14:51:06 -06:00
parent 229aa89450
commit 9485bbfe10
3 changed files with 4 additions and 13 deletions

View file

@ -140,7 +140,7 @@
extern FILE *logstream; extern FILE *logstream;
#endif #endif
#define DEVELOP // Disable this for release builds to remove excessive cheat commands and enable MD5 checking and stuff, all in one go. :3 //#define DEVELOP // Disable this for release builds to remove excessive cheat commands and enable MD5 checking and stuff, all in one go. :3
#ifdef DEVELOP #ifdef DEVELOP
#define VERSION 0 // Game version #define VERSION 0 // Game version
#define SUBVERSION 0 // more precise version number #define SUBVERSION 0 // more precise version number

View file

@ -4942,11 +4942,11 @@ void G_ConsGhostTic(void)
CONS_Alert(CONS_WARNING, M_GetText("Demo playback has desynced!\n")); CONS_Alert(CONS_WARNING, M_GetText("Demo playback has desynced!\n"));
demosynced = false; demosynced = false;
/*P_UnsetThingPosition(testmo); P_UnsetThingPosition(testmo);
testmo->x = oldghost.x; testmo->x = oldghost.x;
testmo->y = oldghost.y; testmo->y = oldghost.y;
P_SetThingPosition(testmo); P_SetThingPosition(testmo);
testmo->z = oldghost.z;*/ testmo->z = oldghost.z;
} }
if (*demo_p == DEMOMARKER) if (*demo_p == DEMOMARKER)

View file

@ -3181,8 +3181,6 @@ static void P_HitBounceLine(line_t *ld)
angle_t lineangle, moveangle, deltaangle; angle_t lineangle, moveangle, deltaangle;
fixed_t movelen; fixed_t movelen;
CONS_Printf("hit bounce line %d\n", leveltime);
if (ld->slopetype == ST_HORIZONTAL) if (ld->slopetype == ST_HORIZONTAL)
{ {
tmymove = -tmymove; tmymove = -tmymove;
@ -3849,7 +3847,6 @@ void P_BouncePlayerMove(mobj_t *mo)
if ((mo->eflags & MFE_JUSTBOUNCEDWALL) || (mo->player->spectator)) if ((mo->eflags & MFE_JUSTBOUNCEDWALL) || (mo->player->spectator))
{ {
CONS_Printf("just bounced %d\n", leveltime);
P_SlideMove(mo, true); P_SlideMove(mo, true);
return; return;
} }
@ -3903,8 +3900,6 @@ void P_BouncePlayerMove(mobj_t *mo)
// First calculate remainder. // First calculate remainder.
bestslidefrac = FRACUNIT - bestslidefrac; bestslidefrac = FRACUNIT - bestslidefrac;
CONS_Printf("best bounce frac %1.6f %d\n", FIXED_TO_FLOAT(bestslidefrac), leveltime);
if (bestslidefrac > FRACUNIT) if (bestslidefrac > FRACUNIT)
bestslidefrac = FRACUNIT; bestslidefrac = FRACUNIT;
@ -3934,8 +3929,6 @@ void P_BouncePlayerMove(mobj_t *mo)
mo->player->cmomx = tmxmove; mo->player->cmomx = tmxmove;
mo->player->cmomy = tmymove; mo->player->cmomy = tmymove;
//CONS_Printf("trymove attempt %s w/ %2.6f %2.6f %d\n", P_TryMove(mo, mo->x + tmxmove, mo->y + tmymove, true) ? "yes" : "no ", FIXED_TO_FLOAT(tmxmove), FIXED_TO_FLOAT(tmymove), leveltime);
if (!P_TryMove(mo, mo->x + tmxmove, mo->y + tmymove, true)) { if (!P_TryMove(mo, mo->x + tmxmove, mo->y + tmymove, true)) {
CONS_Printf("trymove attempt failed w/ %2.6f %2.6f %d\n", FIXED_TO_FLOAT(tmxmove), FIXED_TO_FLOAT(tmymove), leveltime); CONS_Printf("trymove attempt failed w/ %2.6f %2.6f %d\n", FIXED_TO_FLOAT(tmxmove), FIXED_TO_FLOAT(tmymove), leveltime);
P_TryMove(mo, mo->x - oldmomx, mo->y - oldmomy, true); P_TryMove(mo, mo->x - oldmomx, mo->y - oldmomy, true);
@ -3963,7 +3956,6 @@ void P_BounceMove(mobj_t *mo)
if (mo->player) if (mo->player)
{ {
CONS_Printf("bounce player %d\n", leveltime);
P_BouncePlayerMove(mo); P_BouncePlayerMove(mo);
return; return;
} }
@ -4014,7 +4006,6 @@ retry:
bounceback: bounceback:
if (P_TryMove(mo, mo->x - mmomx, mo->y - mmomy, true)) if (P_TryMove(mo, mo->x - mmomx, mo->y - mmomy, true))
{ {
CONS_Printf("bounceback %d\n", leveltime);
mo->momx *= -1; mo->momx *= -1;
mo->momy *= -1; mo->momy *= -1;
mo->momx = FixedMul(mo->momx, (FRACUNIT - (FRACUNIT>>2) - (FRACUNIT>>3))); mo->momx = FixedMul(mo->momx, (FRACUNIT - (FRACUNIT>>2) - (FRACUNIT>>3)));