コミットメタ情報

リビジョン7b270e6b23b72b5fe1c7bf6303ed6425c89638dc (tree)
日時2016-02-11 00:13:26
作者Teemu Piippo <crimsondusk64@gmai...>
コミッターTeemu Piippo

ログメッセージ

Dropping is now allowed by default even in non-cooperative gamemodes, also addresses 2528

変更サマリ

差分

diff -r 821e6e71eb4c -r 7b270e6b23b7 docs/zandronum-history.txt
--- a/docs/zandronum-history.txt Wed Feb 10 17:08:15 2016 +0200
+++ b/docs/zandronum-history.txt Wed Feb 10 17:13:26 2016 +0200
@@ -48,6 +48,7 @@
4848 ! - Since the only purpose of the CVAR sv_useticbuffer is to debug problems with the client movement buffer, it is now restricted to testing binaries. [Torr Samaho]
4949 ! - 'SR50 + turning' movement commands are now clamped to 'SR50' on client and server. [Circunei Z]
5050 ! - Joypad strafing movements are now capped at SR40 speed. [Leonard]
51+! - Dropping is now allowed in competitive gamemodes, unless sv_nodrop explicitly disallows it. [Dusk]
5152
5253
5354 2.1.2
diff -r 821e6e71eb4c -r 7b270e6b23b7 src/cl_commands.cpp
--- a/src/cl_commands.cpp Wed Feb 10 17:08:15 2016 +0200
+++ b/src/cl_commands.cpp Wed Feb 10 17:13:26 2016 +0200
@@ -525,19 +525,10 @@
525525 //
526526 void CLIENTCOMMANDS_RequestInventoryDrop( AInventory *pItem )
527527 {
528- if ( sv_limitcommands )
528+ if ( sv_limitcommands && ( g_ulLastDropTime > 0 ) && ( (ULONG)gametic < g_ulLastDropTime + TICRATE ))
529529 {
530- if ( !(GAMEMODE_GetFlags( GAMEMODE_GetCurrentMode( )) & GMF_COOPERATIVE) )
531- {
532- Printf( "Dropping is not allowed in non-cooperative game modes.\n" );
533- return;
534- }
535-
536- if (( g_ulLastDropTime > 0 ) && ( (ULONG)gametic < ( g_ulLastDropTime + ( TICRATE ))))
537- {
538- Printf( "You must wait at least one second before using drop again.\n" );
539- return;
540- }
530+ Printf( "You must wait at least one second before using drop again.\n" );
531+ return;
541532 }
542533
543534 if ( pItem == NULL )
旧リポジトリブラウザで表示