From 7fcef5d44de38773aeedda509fbe4be10a2f9958 Mon Sep 17 00:00:00 2001 From: toasterbabe Date: Tue, 10 Oct 2017 21:24:24 +0100 Subject: [PATCH] Huh, that's what was going on with the black magyks. Silly me! --- src/g_game.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index d3ea896d6..89a77e9ac 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -4963,8 +4963,6 @@ void G_BeginRecording(void) demo_p += 16; // Stats - WRITEUINT8(demo_p,player->camerascale>>FRACBITS); - WRITEUINT8(demo_p,player->shieldscale>>FRACBITS); WRITEUINT8(demo_p,player->charability); WRITEUINT8(demo_p,player->charability2); WRITEUINT8(demo_p,player->actionspd>>FRACBITS); @@ -4977,6 +4975,8 @@ void G_BeginRecording(void) WRITEUINT8(demo_p,player->acceleration); WRITEUINT8(demo_p,player->height>>FRACBITS); WRITEUINT8(demo_p,player->spinheight>>FRACBITS); + WRITEUINT8(demo_p,player->camerascale>>FRACBITS); + WRITEUINT8(demo_p,player->shieldscale>>FRACBITS); // Trying to convert it back to % causes demo desync due to precision loss. // Don't do it. @@ -5011,7 +5011,7 @@ void G_BeginRecording(void) oldghost.x = player->mo->x; oldghost.y = player->mo->y; oldghost.z = player->mo->z; - oldghost.angle = player->drawangle>>24; + oldghost.angle = player->mo->angle>>24; // preticker started us gravity flipped if (player->mo->eflags & MFE_VERTICALFLIP) @@ -5044,8 +5044,7 @@ void G_BeginMetal(void) oldmetal.x = mo->x; oldmetal.y = mo->y; oldmetal.z = mo->z; - if (mo->player) - oldmetal.angle = mo->player->drawangle>>24; + oldmetal.angle = mo->angle>>24; } void G_SetDemoTime(UINT32 ptime, UINT32 pscore, UINT16 prings) @@ -5353,8 +5352,6 @@ void G_DoPlayDemo(char *defdemoname) M_Memcpy(color,demo_p,16); demo_p += 16; - camerascale = (fixed_t)READUINT8(demo_p)<