Commit 1972c161 authored by NY00123's avatar NY00123
Browse files

Revert SVN commit 8677; It wasn't sufficient in case

one of the players toggled mouse aiming in the middle
of a game, and it worked even worse in Master/Slave mode.
Additionally, tying input to frame rate made the problem disappear.
parent af68572d
......@@ -481,7 +481,6 @@ InitNetPlayerOptions(void)
{
p.PacketType = PACKET_TYPE_PLAYER_OPTIONS;
p.AutoRun = gs.AutoRun;
p.MouseAimingOn = gs.MouseAimingOn;
p.Color = gs.NetColor;
strcpy(p.PlayerName, CommPlayerName);
......@@ -1583,12 +1582,6 @@ getpackets(void)
else
RESET(pp->Flags, PF_LOCK_RUN);
// mouse aiming (required for slope tilting)
if (p->MouseAimingOn)
SET(pp->Flags, PF_MOUSE_AIMING_ON);
else
RESET(pp->Flags, PF_MOUSE_AIMING_ON);
// palette
pp->TeamColor = p->Color;
pp->SpriteP->pal = PALETTE_PLAYER0 + pp->TeamColor;
......
......@@ -91,7 +91,6 @@ typedef struct PACKED
{
uint8_t PacketType; // first byte is always packet type
SWBOOL AutoRun;
SWBOOL MouseAimingOn; // required for slope tilting
uint8_t Color;
char PlayerName[32];
} PACKET_OPTIONS,*PACKET_OPTIONSp;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment