mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 13:10:55 +00:00
I was right on the money - SendWeaponPref seems to have been delayed compared to earlier in development. Doesn't matter a lick for regular gameplay (net or otherwise), but absolutely mandatory to get it sorted ASAP in Record Attack.
This commit is contained in:
parent
f0f8b544de
commit
d7ea986d7b
1 changed files with 19 additions and 5 deletions
24
src/g_game.c
24
src/g_game.c
|
@ -5434,22 +5434,36 @@ void G_BeginRecording(void)
|
||||||
// And mobjtype_t is best with UINT32 too...
|
// And mobjtype_t is best with UINT32 too...
|
||||||
WRITEUINT32(demo_p, player->followitem);
|
WRITEUINT32(demo_p, player->followitem);
|
||||||
|
|
||||||
// Save pflag data
|
// Save pflag data - see SendWeaponPref()
|
||||||
{
|
{
|
||||||
UINT8 buf = 0;
|
UINT8 buf = 0;
|
||||||
if (player->pflags & PF_FLIPCAM)
|
pflags_t pflags = 0;
|
||||||
|
if (cv_flipcam.value)
|
||||||
|
{
|
||||||
buf |= 0x01;
|
buf |= 0x01;
|
||||||
if (player->pflags & PF_ANALOGMODE)
|
pflags |= PF_FLIPCAM;
|
||||||
|
}
|
||||||
|
if (cv_analog.value)
|
||||||
|
{
|
||||||
buf |= 0x02;
|
buf |= 0x02;
|
||||||
if (player->pflags & PF_DIRECTIONCHAR)
|
pflags |= PF_ANALOGMODE;
|
||||||
|
}
|
||||||
|
if (cv_directionchar.value)
|
||||||
|
{
|
||||||
buf |= 0x04;
|
buf |= 0x04;
|
||||||
if (player->pflags & PF_AUTOBRAKE)
|
pflags |= PF_DIRECTIONCHAR;
|
||||||
|
}
|
||||||
|
if (cv_autobrake.value)
|
||||||
|
{
|
||||||
buf |= 0x08;
|
buf |= 0x08;
|
||||||
|
pflags |= PF_AUTOBRAKE;
|
||||||
|
}
|
||||||
if (cv_usejoystick.value)
|
if (cv_usejoystick.value)
|
||||||
buf |= 0x10;
|
buf |= 0x10;
|
||||||
CV_SetValue(&cv_showinputjoy, !!(cv_usejoystick.value));
|
CV_SetValue(&cv_showinputjoy, !!(cv_usejoystick.value));
|
||||||
|
|
||||||
WRITEUINT8(demo_p,buf);
|
WRITEUINT8(demo_p,buf);
|
||||||
|
player->pflags = pflags;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save netvar data
|
// Save netvar data
|
||||||
|
|
Loading…
Reference in a new issue