• R/O
  • SSH

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum Beta for TSPG.


Commit MetaInfo

Révision47147ff6a81e1cefcc588d216e4575897f124e2b (tree)
l'heure2021-11-19 09:26:31
AuteurAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Message de Log

Backed out changeset: efc0e1e15b4b
Removes: "Have the server notify the clients about any changes to the skip correction's settings."

Change Summary

Modification

diff -r 35bec45566a7 -r 47147ff6a81e src/cl_main.cpp
--- a/src/cl_main.cpp Wed Nov 17 09:37:40 2021 -0500
+++ b/src/cl_main.cpp Thu Nov 18 19:26:31 2021 -0500
@@ -2338,24 +2338,6 @@
23382338 }
23392339 break;
23402340
2341- case SVC2_SYNCSKIPCORRECTIONINFO:
2342- {
2343- UCVarValue Value;
2344-
2345- // Read in and set the value for sv_smoothplayers.
2346- Value.Bool = pByteStream->ReadBit();
2347- sv_smoothplayers.ForceSet( Value, CVAR_Bool );
2348-
2349- // Read in and set the value for sv_extrapolatetics.
2350- Value.Int = pByteStream->ReadShortByte( 7 );
2351- sv_extrapolatetics.ForceSet( Value, CVAR_Int );
2352-
2353- // Read in and set the value for sv_backtracethreshold.
2354- Value.Float = pByteStream->ReadFloat();
2355- sv_backtracethreshold.ForceSet( Value, CVAR_Float );
2356- }
2357- break;
2358-
23592341 default:
23602342 sprintf( szString, "CLIENT_ParsePacket: Illegible server message: %d\nLast command: %d\n", static_cast<int> (lExtCommand), static_cast<int> (g_lLastCmd) );
23612343 CLIENT_QuitNetworkGame( szString );
diff -r 35bec45566a7 -r 47147ff6a81e src/network_enums.h
--- a/src/network_enums.h Wed Nov 17 09:37:40 2021 -0500
+++ b/src/network_enums.h Thu Nov 18 19:26:31 2021 -0500
@@ -373,7 +373,6 @@
373373 ENUM_ELEMENT ( SVC2_SYNCMAPROTATION ),
374374 ENUM_ELEMENT ( SVC2_UPDATEMAPROTATION ),
375375 ENUM_ELEMENT ( SVC2_STOPALLSOUNDSONTHING ),
376- ENUM_ELEMENT ( SVC2_SYNCSKIPCORRECTIONINFO ),
377376 // [BB] Commands necessary for the account system.
378377 ENUM_ELEMENT ( SVC2_SRP_USER_START_AUTHENTICATION ),
379378 ENUM_ELEMENT ( SVC2_SRP_USER_PROCESS_CHALLENGE ),
diff -r 35bec45566a7 -r 47147ff6a81e src/sv_commands.cpp
--- a/src/sv_commands.cpp Wed Nov 17 09:37:40 2021 -0500
+++ b/src/sv_commands.cpp Thu Nov 18 19:26:31 2021 -0500
@@ -5082,17 +5082,6 @@
50825082 }
50835083
50845084 //*****************************************************************************
5085-// [AK]
5086-void SERVERCOMMANDS_SyncSkipCorrectionInfo( ULONG ulPlayerExtra, ServerCommandFlags flags )
5087-{
5088- NetCommand command ( SVC2_SYNCSKIPCORRECTIONINFO );
5089- command.addBit( sv_smoothplayers );
5090- command.addShortByte( sv_extrapolatetics, 7 );
5091- command.addFloat( sv_backtracethreshold );
5092- command.sendCommandToClients( ulPlayerExtra, flags );
5093-}
5094-
5095-//*****************************************************************************
50965085 void APathFollower::SyncWithClient ( const ULONG ulClient )
50975086 {
50985087 if ( !EnsureActorHasNetID (this) )
diff -r 35bec45566a7 -r 47147ff6a81e src/sv_commands.h
--- a/src/sv_commands.h Wed Nov 17 09:37:40 2021 -0500
+++ b/src/sv_commands.h Thu Nov 18 19:26:31 2021 -0500
@@ -435,6 +435,5 @@
435435 void SERVERCOMMANDS_AddToMapRotation( const char *pszMapName, int position, ULONG ulMinPlayers, ULONG ulMaxPlayers, ULONG ulPlayerExtra = MAXPLAYERS, ServerCommandFlags flags = 0 );
436436 void SERVERCOMMANDS_DelFromMapRotation( const char *pszMapName, bool bClear = false, ULONG ulPlayerExtra = MAXPLAYERS, ServerCommandFlags flags = 0 );
437437 void SERVERCOMMANDS_ResetMapRotation( ULONG ulPlayerExtra = MAXPLAYERS, ServerCommandFlags flags = 0 );
438-void SERVERCOMMANDS_SyncSkipCorrectionInfo( ULONG ulPlayerExtra = MAXPLAYERS, ServerCommandFlags flags = 0 );
439438
440439 #endif // __SV_COMMANDS_H__
diff -r 35bec45566a7 -r 47147ff6a81e src/sv_main.cpp
--- a/src/sv_main.cpp Wed Nov 17 09:37:40 2021 -0500
+++ b/src/sv_main.cpp Thu Nov 18 19:26:31 2021 -0500
@@ -315,9 +315,6 @@
315315
316316 SERVER_Printf( "Skip correction %s.\n", self ? "enabled" : "disabled" );
317317 bOldValue = self;
318-
319- // [AK] Notify the clients about any changes to the skip correction's settings.
320- SERVERCOMMANDS_SyncSkipCorrectionInfo( );
321318 }
322319 }
323320 }
@@ -337,10 +334,6 @@
337334 Printf( "A player's movement can only be extrapolated for up to 7 tics.\n" );
338335 self = 7;
339336 }
340-
341- // [AK] Notify the clients about any changes to the skip correction's settings.
342- if ( NETWORK_GetState( ) == NETSTATE_SERVER )
343- SERVERCOMMANDS_SyncSkipCorrectionInfo( );
344337 }
345338
346339 //*****************************************************************************
@@ -357,10 +350,6 @@
357350 Printf( "The maximum threshold is 96 map units.\n" );
358351 self = 96.0f;
359352 }
360-
361- // [AK] Notify the clients about any changes to the skip correction's settings.
362- if ( NETWORK_GetState( ) == NETSTATE_SERVER )
363- SERVERCOMMANDS_SyncSkipCorrectionInfo( );
364353 }
365354
366355 //*****************************************************************************
@@ -1525,9 +1514,6 @@
15251514 // [AK] Send the name of the server.
15261515 SERVERCOMMANDS_SetCVar( sv_hostname, g_lCurrentClient, SVCF_ONLYTHISCLIENT );
15271516
1528- // [AK] Send the current state of the skip correction.
1529- SERVERCOMMANDS_SyncSkipCorrectionInfo( g_lCurrentClient, SVCF_ONLYTHISCLIENT );
1530-
15311517 // Send dmflags.
15321518 SERVERCOMMANDS_SetGameDMFlags( g_lCurrentClient, SVCF_ONLYTHISCLIENT );
15331519
diff -r 35bec45566a7 -r 47147ff6a81e src/sv_main.h
--- a/src/sv_main.h Wed Nov 17 09:37:40 2021 -0500
+++ b/src/sv_main.h Thu Nov 18 19:26:31 2021 -0500
@@ -703,7 +703,6 @@
703703 EXTERN_CVAR( Bool, sv_limitcommands )
704704 EXTERN_CVAR( Bool, sv_smoothplayers )
705705 EXTERN_CVAR( Int, sv_extrapolatetics )
706-EXTERN_CVAR( Float, sv_backtracethreshold )
707706 EXTERN_CVAR( Int, sv_allowprivatechat )
708707
709708 // From sv_master.cpp