Revisión | a1d1b474742fc07769043ce2a916605952492bf0 (tree) |
---|---|
Tiempo | 2021-10-25 08:30:58 |
Autor | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Fixed backup weapon select commands being parsed incorrectly.
@@ -540,8 +540,8 @@ | ||
540 | 540 | // also send the gametic so the server knows exactly where this command should go |
541 | 541 | // in the client's tic buffer, or can ignore it if it's already been received. |
542 | 542 | CLIENT_GetLocalBuffer( )->ByteStream.WriteByte( CLC_WEAPONSELECTBACKUP ); |
543 | + CLIENT_GetLocalBuffer( )->ByteStream.WriteShort( g_pLastWeaponClass->getActorNetworkIndex( )); | |
543 | 544 | CLIENT_GetLocalBuffer( )->ByteStream.WriteLong( g_ulLastWeaponSelectTime ); |
544 | - CLIENT_GetLocalBuffer( )->ByteStream.WriteShort( g_pLastWeaponClass->getActorNetworkIndex( )); | |
545 | 545 | } |
546 | 546 | |
547 | 547 | //***************************************************************************** |
@@ -6089,7 +6089,7 @@ | ||
6089 | 6089 | |
6090 | 6090 | ClientBackupWeaponSelectCommand::ClientBackupWeaponSelectCommand ( BYTESTREAM_s *pByteStream ) |
6091 | 6091 | // [AK] Read in the gametic the client sent us. |
6092 | - : ulGametic ( pByteStream->ReadLong() ), ClientWeaponSelectCommand( pByteStream ) { } | |
6092 | + : ClientWeaponSelectCommand( pByteStream ), ulGametic ( pByteStream->ReadLong() ) { } | |
6093 | 6093 | |
6094 | 6094 | |
6095 | 6095 | bool ClientWeaponSelectCommand::process( const ULONG ulClient ) const |