mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 21:20:54 +00:00
Correct location of followmobj scale write to match read (resolves #322).
Requires deleting all of RC1's Record Attack replays with followmobj characters, but I think you'll agree that's a reasonable price to pay.
This commit is contained in:
parent
f13e67bf8f
commit
990d9ed40c
1 changed files with 6 additions and 5 deletions
11
src/g_game.c
11
src/g_game.c
|
@ -4726,6 +4726,12 @@ void G_WriteGhostTic(mobj_t *ghost)
|
||||||
oldghost.flags2 |= MF2_AMBUSH;
|
oldghost.flags2 |= MF2_AMBUSH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ghost->player->followmobj->scale != ghost->scale)
|
||||||
|
{
|
||||||
|
followtic |= FZT_SCALE;
|
||||||
|
WRITEFIXED(demo_p,ghost->player->followmobj->scale);
|
||||||
|
}
|
||||||
|
|
||||||
temp = (INT16)((ghost->player->followmobj->x-ghost->x)>>8);
|
temp = (INT16)((ghost->player->followmobj->x-ghost->x)>>8);
|
||||||
WRITEINT16(demo_p,temp);
|
WRITEINT16(demo_p,temp);
|
||||||
temp = (INT16)((ghost->player->followmobj->y-ghost->y)>>8);
|
temp = (INT16)((ghost->player->followmobj->y-ghost->y)>>8);
|
||||||
|
@ -4737,11 +4743,6 @@ void G_WriteGhostTic(mobj_t *ghost)
|
||||||
WRITEUINT16(demo_p,ghost->player->followmobj->sprite);
|
WRITEUINT16(demo_p,ghost->player->followmobj->sprite);
|
||||||
WRITEUINT8(demo_p,(ghost->player->followmobj->frame & FF_FRAMEMASK));
|
WRITEUINT8(demo_p,(ghost->player->followmobj->frame & FF_FRAMEMASK));
|
||||||
WRITEUINT8(demo_p,ghost->player->followmobj->color);
|
WRITEUINT8(demo_p,ghost->player->followmobj->color);
|
||||||
if (ghost->player->followmobj->scale != ghost->scale)
|
|
||||||
{
|
|
||||||
followtic |= FZT_SCALE;
|
|
||||||
WRITEFIXED(demo_p,ghost->player->followmobj->scale);
|
|
||||||
}
|
|
||||||
|
|
||||||
*followtic_p = followtic;
|
*followtic_p = followtic;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue