• 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

This is a fork of Zandronum Beta for TSPG.


Commit MetaInfo

Revision3d7a2a6c47bdcaf8f00249fcd0a142060a274f29 (tree)
Time2022-06-22 08:53:32
AuthorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

The "addbot" CCMD is no longer blacklisted on TSPG. Hosts are allowed to add up to 16 bots to a server.

Change Summary

Incremental Difference

diff -r 4f7fb4147735 -r 3d7a2a6c47bd src/bots.cpp
--- a/src/bots.cpp Sun Jun 19 16:49:26 2022 -0400
+++ b/src/bots.cpp Tue Jun 21 19:53:32 2022 -0400
@@ -3840,11 +3840,13 @@
38403840 //
38413841 CCMD( addbot )
38423842 {
3843+ /*
38433844 // [TSPG]
38443845 #if defined( SERVER_ONLY ) && defined( SERVER_BLACKLIST )
38453846 if ( gamestate != GS_STARTUP )
38463847 return;
38473848 #endif
3849+ */
38483850
38493851 CSkullBot *pBot;
38503852 ULONG ulPlayerIdx;
@@ -3887,6 +3889,13 @@
38873889 return;
38883890 }
38893891
3892+ // [TSPG] We only allow up to 16 bots on a single server.
3893+ if ( BOTS_CountBots( ) >= 16 )
3894+ {
3895+ Printf( "The maximum number of bots allowed is 16, you cannot add any more.\n" );
3896+ return;
3897+ }
3898+
38903899 switch ( argv.argc( ) )
38913900 {
38923901 case 1: