[quake3-commits] [ioquake/ioq3] d1631d: Use const char pointers when possible in botlib's ...

Zack Middleton zack at cloemail.com
Wed Jun 7 23:41:46 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/ioquake/ioq3
  Commit: d1631d6ea3cfc61936d7bcd5562101e4e6d37ab7
      https://github.com/ioquake/ioq3/commit/d1631d6ea3cfc61936d7bcd5562101e4e6d37ab7
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/botlib/be_interface.c
    M code/botlib/botlib.h
    M code/botlib/l_libvar.c
    M code/botlib/l_libvar.h

  Log Message:
  -----------
  Use const char pointers when possible in botlib's libvar code


  Commit: 74aa4268b20f5b1a3ff8710cfc9ac1329d0b6934
      https://github.com/ioquake/ioq3/commit/74aa4268b20f5b1a3ff8710cfc9ac1329d0b6934
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/game/ai_chat.c
    M code/game/ai_cmd.c
    M code/game/ai_dmq3.c
    M code/game/ai_main.c
    M code/game/ai_team.c

  Log Message:
  -----------
  Stop caching sv_maxclients in bot code


  Commit: 6e340f9a5b185b58b80063655cd4cffd463b707c
      https://github.com/ioquake/ioq3/commit/6e340f9a5b185b58b80063655cd4cffd463b707c
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/game/ai_chat.c
    M code/game/ai_dmq3.c
    M code/game/ai_main.c
    M code/game/ai_team.c

  Log Message:
  -----------
  Don't use uninitialized ps from BotAI_GetClientState

If BotAI_GetPlayerState returns qfalse, ps is untouched and in
some cases means uninitialized. So don't use it if not valid.


  Commit: d58234a6c7475ea57ab5783dd0a0dd6ca5e54583
      https://github.com/ioquake/ioq3/commit/d58234a6c7475ea57ab5783dd0a0dd6ca5e54583
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/cgame/cg_players.c
    M code/q3_ui/ui_players.c
    M code/ui/ui_players.c

  Log Message:
  -----------
  Fix 'missing token' in parsers for animations.cfg


  Commit: 1048073e2624102dff884c38d5f6417ae860b2f5
      https://github.com/ioquake/ioq3/commit/1048073e2624102dff884c38d5f6417ae860b2f5
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/cgame/cg_main.c
    M code/cgame/cg_servercmds.c
    M code/q3_ui/ui_startserver.c
    M code/ui/ui_main.c

  Log Message:
  -----------
  Unify checks for missing COM_Parse() token


  Commit: 1456008d961bc7cf3bc633e4cd7ebc981d408cc8
      https://github.com/ioquake/ioq3/commit/1456008d961bc7cf3bc633e4cd7ebc981d408cc8
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/cgame/cg_snapshot.c

  Log Message:
  -----------
  Fix comment for CG_SetInitialSnapshot


  Commit: c96acec4286625f3cdf6a28b6341802139aa4144
      https://github.com/ioquake/ioq3/commit/c96acec4286625f3cdf6a28b6341802139aa4144
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/cgame/cg_snapshot.c

  Log Message:
  -----------
  Fix (unused) check for map restart in CG_TransitionSnapshot


  Commit: b511b8f2f6690fa6e8268acfbb020aeff974413f
      https://github.com/ioquake/ioq3/commit/b511b8f2f6690fa6e8268acfbb020aeff974413f
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/game/bg_slidemove.c

  Log Message:
  -----------
  Fix Coverity warning that endVelocity is uninitialized


  Commit: 91acf8a681e8661a80f13e0a82255cb52c56cf79
      https://github.com/ioquake/ioq3/commit/91acf8a681e8661a80f13e0a82255cb52c56cf79
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/game/g_cmds.c

  Log Message:
  -----------
  Don't build score info for bots, they don't parse it


  Commit: eeb28dc1d0d7046a0176e926de3907b5b9cf3c96
      https://github.com/ioquake/ioq3/commit/eeb28dc1d0d7046a0176e926de3907b5b9cf3c96
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/game/g_cmds.c

  Log Message:
  -----------
  Fix score info being dropped by server

Server drops reliable command string if it's length is more than 1022.


  Commit: 71512bb1fd8c955011cc82fe93d69d69c1575721
      https://github.com/ioquake/ioq3/commit/71512bb1fd8c955011cc82fe93d69d69c1575721
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/game/g_cmds.c

  Log Message:
  -----------
  Show client's name in callvote clientkick vote display message

Make callvote always kick by client num so player can't rename to
avoid being kicked. Don't allow calling a vote to kick host or
non-existent players.


  Commit: 5b9302a7efe480c5ee97f3a5caa20a32d4866252
      https://github.com/ioquake/ioq3/commit/5b9302a7efe480c5ee97f3a5caa20a32d4866252
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/game/g_main.c
    M code/game/g_svcmds.c

  Log Message:
  -----------
  Don't start game entity loops at index 1


  Commit: 1a8bf792e7555463072b36a969350198a880d834
      https://github.com/ioquake/ioq3/commit/1a8bf792e7555463072b36a969350198a880d834
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/server/sv_game.c

  Log Message:
  -----------
  Range check client number for trap_BotUserCommand


  Commit: a738cb95926a78f23716e8310dedf07dab17a2e0
      https://github.com/ioquake/ioq3/commit/a738cb95926a78f23716e8310dedf07dab17a2e0
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/cgame/cg_drawtools.c

  Log Message:
  -----------
  Fix overdraw in CG_DrawRect

It was noticeable in the corners when alpha was less than 1.


  Commit: 730b91705955c5cd1cff4ee9264998012db8dfa6
      https://github.com/ioquake/ioq3/commit/730b91705955c5cd1cff4ee9264998012db8dfa6
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/game/ai_dmq3.c

  Log Message:
  -----------
  Fix comment in BotAIPredictObstacles


  Commit: 8a6c9d10389eb9bab17ac589128827a86055b0cf
      https://github.com/ioquake/ioq3/commit/8a6c9d10389eb9bab17ac589128827a86055b0cf
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/game/ai_dmq3.c

  Log Message:
  -----------
  Remove unneeded 'angles' variables/clearing in ai_dmq3.c


  Commit: 74a59f17c7afb6e427df22a25e44327b7b6e0739
      https://github.com/ioquake/ioq3/commit/74a59f17c7afb6e427df22a25e44327b7b6e0739
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/cgame/cg_particles.c

  Log Message:
  -----------
  Don't copy p->org to itself in cg_particles.c


  Commit: 9aae0948abeaf3e3507c6f070ca7ff929ea46a2c
      https://github.com/ioquake/ioq3/commit/9aae0948abeaf3e3507c6f070ca7ff929ea46a2c
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/botlib/be_ea.c

  Log Message:
  -----------
  Remove unused define MAX_COMMANDARGUMENTS from be_ea.c


  Commit: c99281a0da0df95f6bb8a26676c9c5afdbaa995d
      https://github.com/ioquake/ioq3/commit/c99281a0da0df95f6bb8a26676c9c5afdbaa995d
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/game/ai_dmq3.c

  Log Message:
  -----------
  Make bots stop attacking player after disconnect

Bots did not notice player disconnected, so they kept attacking
the last known position.

Checking if entity is valid in BotEntityVisible might fix other
similar issues too.


  Commit: 8956ab41dd67c9eff889821bec1e1b13ea012568
      https://github.com/ioquake/ioq3/commit/8956ab41dd67c9eff889821bec1e1b13ea012568
  Author: Tobias Kuehnhammer <kuehnhammertobias at gmail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/game/ai_dmq3.c

  Log Message:
  -----------
  Fix notarget cheat

Bots no longer target players in 'no target mode'.


  Commit: c12b81a2734dc661d68e384c7188349eb1ef58a9
      https://github.com/ioquake/ioq3/commit/c12b81a2734dc661d68e384c7188349eb1ef58a9
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-06-07 (Wed, 07 Jun 2017)

  Changed paths:
    M code/botlib/be_aas_main.c
    M code/botlib/be_ai_chat.c
    M code/botlib/be_ai_goal.c
    M code/botlib/be_ai_weap.c
    M code/botlib/l_log.c
    M code/botlib/l_precomp.c
    M code/botlib/l_script.c
    M code/botlib/l_struct.c

  Log Message:
  -----------
  Fix strncpy usage in botlib

All usage of strncpy in botlib should now either set string
terminator or use Q_strncpyz.


Compare: https://github.com/ioquake/ioq3/compare/db1198f6ea2e...c12b81a2734d


More information about the quake3-commits mailing list