yquake2remaster/src/game
Daniel Gibson 5e33152f6a One entity shooting another should work even if friendly fire is off
In rogue's RHANGAR1 the turret didn't blow up the ceiling when friendly fire
was off, because in ClientTeam() both entities were set to "" (no team),
but OnSameTeam() just did a strcmp() instead of checking this special
case (no team).
We check this now and thus it works. Hooray.
I also refactored ClientTeam() to take the buffer instead of using a
static one and to be static (it's only called by OnSameTeam() anyway).

The savegame table entry for this function was invalid, but it doesn't
need to be saved anyway, so I just deleted it from the table.
2014-11-30 17:58:18 +01:00
..
header Move some functions to a better place 2013-03-23 11:40:54 +01:00
monster Use the correct abs() flavor 2014-08-03 10:49:33 +02:00
player replace most strncpy calls (several of them wrong) by Q_strlcpy calls 2013-05-11 14:44:36 +02:00
savegame One entity shooting another should work even if friendly fire is off 2014-11-30 17:58:18 +01:00
g_ai.c Fix some typos. 2014-07-30 20:58:09 -05:00
g_chase.c Some minor cleanup/tuning/commenting 2013-04-14 18:46:08 +02:00
g_cmds.c One entity shooting another should work even if friendly fire is off 2014-11-30 17:58:18 +01:00
g_combat.c Whitespace fixes. 2012-04-30 08:25:59 +02:00
g_func.c Revert "Convert random() to randk() and crandom() to crandk()" 2012-06-14 12:12:57 +02:00
g_items.c Prevent a divion by zero 2012-06-04 09:13:29 +02:00
g_main.c Lets not do the last two commits just before 5.11 2013-05-18 18:59:39 +02:00
g_misc.c Revert "Convert random() to randk() and crandom() to crandk()" 2012-06-14 12:12:57 +02:00
g_monster.c Revert "Convert random() to randk() and crandom() to crandk()" 2012-06-14 12:12:57 +02:00
g_phys.c Remove unused variables and dead code (patch submitted by Christoph 2012-04-30 10:02:58 +02:00
g_spawn.c replace most strncpy calls (several of them wrong) by Q_strlcpy calls 2013-05-11 14:44:36 +02:00
g_svcmds.c Lets not do the last two commits just before 5.11 2013-05-18 18:59:39 +02:00
g_target.c replace most strncpy calls (several of them wrong) by Q_strlcpy calls 2013-05-11 14:44:36 +02:00
g_trigger.c Change atoi() to strtol() 2012-06-04 09:13:28 +02:00
g_turret.c Revert "Convert random() to randk() and crandom() to crandk()" 2012-06-14 12:12:57 +02:00
g_utils.c Convert rand(), crand() and frand() to randk(), crandk() and frandk() 2012-06-04 09:13:29 +02:00
g_weapon.c some sanity check commenting 2013-05-11 12:57:50 +02:00