Commits

Torr_Samaho committed 86e9144

Fixed: When a non-spectator player disconnected his running CLIENTSIDE scripts were not terminated.

  • Participants
  • Parent commits 2a154eb

Comments (0)

Files changed (2)

docs/Skulltag Version History.txt

 -	- Fixed some Z position sync problems of floating monsters online. [TIHan]
 -	- Fixed: Players could choose their team by using "team" or "changeteam" commands as a spectator when sv_noteamselect was true. [TIHan]
 -	- Fixed: Spectators were affected by the TimeFreezeSphere in competitive modes. [TIHan]
+-	- Fixed: When a non-spectator player disconnected his running CLIENTSIDE scripts were not terminated. [Torr Samaho]
 !	- Changed F12 to allow spectators full spying, with the exception of during LMS if it's disabled. [Eruanna]
 !	- Changed F12 to allow full demo spying. [Eruanna]
 !	- Players aren't forced to spectate after a "changemap" map change on a server with a join password anymore. [Torr Samaho]
 	// Create a little disconnect particle effect thingamabobber!
 	// [BB] Only do this if a non-spectator disconnects.
 	if ( players[ulPlayer].bSpectating == false )
+	{
 		P_DisconnectEffect( players[ulPlayer].mo );
 
+		// [BB] Stop all CLIENTSIDE scripts of the player that are still running.
+		if ( !( compatflags2 & COMPATF2_DONT_STOP_PLAYER_SCRIPTS_ON_DISCONNECT ) )
+			FBehavior::StaticStopMyScripts ( players[ulPlayer].mo );
+	}
+
 	// Destroy the actor associated with the player.
 	if ( players[ulPlayer].mo )
 	{