This is a fork of Zandronum Beta for TSPG.
Révision | 47147ff6a81e1cefcc588d216e4575897f124e2b (tree) |
---|---|
l'heure | 2021-11-19 09:26:31 |
Auteur | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Backed out changeset: efc0e1e15b4b
Removes: "Have the server notify the clients about any changes to the skip correction's settings."
@@ -2338,24 +2338,6 @@ | ||
2338 | 2338 | } |
2339 | 2339 | break; |
2340 | 2340 | |
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 | - | |
2359 | 2341 | default: |
2360 | 2342 | sprintf( szString, "CLIENT_ParsePacket: Illegible server message: %d\nLast command: %d\n", static_cast<int> (lExtCommand), static_cast<int> (g_lLastCmd) ); |
2361 | 2343 | CLIENT_QuitNetworkGame( szString ); |
@@ -373,7 +373,6 @@ | ||
373 | 373 | ENUM_ELEMENT ( SVC2_SYNCMAPROTATION ), |
374 | 374 | ENUM_ELEMENT ( SVC2_UPDATEMAPROTATION ), |
375 | 375 | ENUM_ELEMENT ( SVC2_STOPALLSOUNDSONTHING ), |
376 | - ENUM_ELEMENT ( SVC2_SYNCSKIPCORRECTIONINFO ), | |
377 | 376 | // [BB] Commands necessary for the account system. |
378 | 377 | ENUM_ELEMENT ( SVC2_SRP_USER_START_AUTHENTICATION ), |
379 | 378 | ENUM_ELEMENT ( SVC2_SRP_USER_PROCESS_CHALLENGE ), |
@@ -5082,17 +5082,6 @@ | ||
5082 | 5082 | } |
5083 | 5083 | |
5084 | 5084 | //***************************************************************************** |
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 | -//***************************************************************************** | |
5096 | 5085 | void APathFollower::SyncWithClient ( const ULONG ulClient ) |
5097 | 5086 | { |
5098 | 5087 | if ( !EnsureActorHasNetID (this) ) |
@@ -435,6 +435,5 @@ | ||
435 | 435 | void SERVERCOMMANDS_AddToMapRotation( const char *pszMapName, int position, ULONG ulMinPlayers, ULONG ulMaxPlayers, ULONG ulPlayerExtra = MAXPLAYERS, ServerCommandFlags flags = 0 ); |
436 | 436 | void SERVERCOMMANDS_DelFromMapRotation( const char *pszMapName, bool bClear = false, ULONG ulPlayerExtra = MAXPLAYERS, ServerCommandFlags flags = 0 ); |
437 | 437 | void SERVERCOMMANDS_ResetMapRotation( ULONG ulPlayerExtra = MAXPLAYERS, ServerCommandFlags flags = 0 ); |
438 | -void SERVERCOMMANDS_SyncSkipCorrectionInfo( ULONG ulPlayerExtra = MAXPLAYERS, ServerCommandFlags flags = 0 ); | |
439 | 438 | |
440 | 439 | #endif // __SV_COMMANDS_H__ |
@@ -315,9 +315,6 @@ | ||
315 | 315 | |
316 | 316 | SERVER_Printf( "Skip correction %s.\n", self ? "enabled" : "disabled" ); |
317 | 317 | bOldValue = self; |
318 | - | |
319 | - // [AK] Notify the clients about any changes to the skip correction's settings. | |
320 | - SERVERCOMMANDS_SyncSkipCorrectionInfo( ); | |
321 | 318 | } |
322 | 319 | } |
323 | 320 | } |
@@ -337,10 +334,6 @@ | ||
337 | 334 | Printf( "A player's movement can only be extrapolated for up to 7 tics.\n" ); |
338 | 335 | self = 7; |
339 | 336 | } |
340 | - | |
341 | - // [AK] Notify the clients about any changes to the skip correction's settings. | |
342 | - if ( NETWORK_GetState( ) == NETSTATE_SERVER ) | |
343 | - SERVERCOMMANDS_SyncSkipCorrectionInfo( ); | |
344 | 337 | } |
345 | 338 | |
346 | 339 | //***************************************************************************** |
@@ -357,10 +350,6 @@ | ||
357 | 350 | Printf( "The maximum threshold is 96 map units.\n" ); |
358 | 351 | self = 96.0f; |
359 | 352 | } |
360 | - | |
361 | - // [AK] Notify the clients about any changes to the skip correction's settings. | |
362 | - if ( NETWORK_GetState( ) == NETSTATE_SERVER ) | |
363 | - SERVERCOMMANDS_SyncSkipCorrectionInfo( ); | |
364 | 353 | } |
365 | 354 | |
366 | 355 | //***************************************************************************** |
@@ -1525,9 +1514,6 @@ | ||
1525 | 1514 | // [AK] Send the name of the server. |
1526 | 1515 | SERVERCOMMANDS_SetCVar( sv_hostname, g_lCurrentClient, SVCF_ONLYTHISCLIENT ); |
1527 | 1516 | |
1528 | - // [AK] Send the current state of the skip correction. | |
1529 | - SERVERCOMMANDS_SyncSkipCorrectionInfo( g_lCurrentClient, SVCF_ONLYTHISCLIENT ); | |
1530 | - | |
1531 | 1517 | // Send dmflags. |
1532 | 1518 | SERVERCOMMANDS_SetGameDMFlags( g_lCurrentClient, SVCF_ONLYTHISCLIENT ); |
1533 | 1519 |
@@ -703,7 +703,6 @@ | ||
703 | 703 | EXTERN_CVAR( Bool, sv_limitcommands ) |
704 | 704 | EXTERN_CVAR( Bool, sv_smoothplayers ) |
705 | 705 | EXTERN_CVAR( Int, sv_extrapolatetics ) |
706 | -EXTERN_CVAR( Float, sv_backtracethreshold ) | |
707 | 706 | EXTERN_CVAR( Int, sv_allowprivatechat ) |
708 | 707 | |
709 | 708 | // From sv_master.cpp |