• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revisióna1d1b474742fc07769043ce2a916605952492bf0 (tree)
Tiempo2021-10-25 08:30:58
AutorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed backup weapon select commands being parsed incorrectly.

Cambiar Resumen

Diferencia incremental

diff -r 6d4eb272d493 -r a1d1b474742f src/cl_commands.cpp
--- a/src/cl_commands.cpp Sun Oct 24 08:17:35 2021 -0400
+++ b/src/cl_commands.cpp Sun Oct 24 19:30:58 2021 -0400
@@ -540,8 +540,8 @@
540540 // also send the gametic so the server knows exactly where this command should go
541541 // in the client's tic buffer, or can ignore it if it's already been received.
542542 CLIENT_GetLocalBuffer( )->ByteStream.WriteByte( CLC_WEAPONSELECTBACKUP );
543+ CLIENT_GetLocalBuffer( )->ByteStream.WriteShort( g_pLastWeaponClass->getActorNetworkIndex( ));
543544 CLIENT_GetLocalBuffer( )->ByteStream.WriteLong( g_ulLastWeaponSelectTime );
544- CLIENT_GetLocalBuffer( )->ByteStream.WriteShort( g_pLastWeaponClass->getActorNetworkIndex( ));
545545 }
546546
547547 //*****************************************************************************
diff -r 6d4eb272d493 -r a1d1b474742f src/sv_main.cpp
--- a/src/sv_main.cpp Sun Oct 24 08:17:35 2021 -0400
+++ b/src/sv_main.cpp Sun Oct 24 19:30:58 2021 -0400
@@ -6089,7 +6089,7 @@
60896089
60906090 ClientBackupWeaponSelectCommand::ClientBackupWeaponSelectCommand ( BYTESTREAM_s *pByteStream )
60916091 // [AK] Read in the gametic the client sent us.
6092- : ulGametic ( pByteStream->ReadLong() ), ClientWeaponSelectCommand( pByteStream ) { }
6092+ : ClientWeaponSelectCommand( pByteStream ), ulGametic ( pByteStream->ReadLong() ) { }
60936093
60946094
60956095 bool ClientWeaponSelectCommand::process( const ULONG ulClient ) const