From: nils m. <sh...@us...> - 2004-02-23 05:34:45
|
Update of /cvsroot/bzflag/bzflag/src/bzflag In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22895 Modified Files: commands.cxx Log Message: don't allow autopilot to be turned on if server doesn't permit it Index: commands.cxx =================================================================== RCS file: /cvsroot/bzflag/bzflag/src/bzflag/commands.cxx,v retrieving revision 1.5 retrieving revision 1.6 diff -w -u -r1.5 -r1.6 --- commands.cxx 20 Feb 2004 19:56:11 -0000 1.5 +++ commands.cxx 23 Feb 2004 05:21:25 -0000 1.6 @@ -257,6 +257,11 @@ char messageBuffer[MessageLen]; memset(messageBuffer, 0, MessageLen); + if (BZDB.isTrue("_disableBots")) { + hud->setAlert(0, "autopilot not allowed on this server", 1.0f, true); + return std::string(); + } + if (myTank != NULL && myTank->getTeam() != ObserverTeam) { if (myTank->isAutoPilot()) { myTank->setAutoPilot(false); |