Commits

Teemu Piippo committed b8b4915

Fixed desyncs with A_M_CheckAttack and A_BFGSound.

Comments (0)

Files changed (2)

docs/zandronum-history.txt

 -	- Fixed: Using reconnect while playing a demo caused the game to crash. [Torr Samaho]
 -	- Fixed: The lag icon was missing from zandronum.pk3. [Torr Samaho]
 -	- Fixed: If a player respawned with a console, chat or lag icon above his head, the icon vanished. [Torr Samaho]
+-	- Fixed: A_M_CheckAttack and A_M_BFGSound would cause desyncs. [Dusk]
 !	- sv_coop_damagefactor is not archived in the config file anymore, but reset to its default value when the game starts. [Torr Samaho]
 
 

src/g_doom/a_scriptedmarine.cpp

 
 	if (self->special1 != 0 || self->target == NULL)
 	{
+		// [Dusk] Update the state to clients
+		if ( NETWORK_GetState( ) == NETSTATE_SERVER )
+			SERVERCOMMANDS_SetThingFrame( self, self->FindState("SkipAttack") );
+
 		self->SetState (self->FindState("SkipAttack"));
 	}
 	else
 
 	if (self->special1 != 0)
 	{
+		// [Dusk] Update the state change to clients.
+		if ( NETWORK_GetState( ) == NETSTATE_SERVER )
+			SERVERCOMMANDS_SetThingFrame( self, self->SeeState );
+
 		self->SetState (self->SeeState);
 	}
 	else