From c312a89e02262b5cb3d2c55b8ac17e521aee82ac Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 19 Aug 2006 01:30:40 +0000 Subject: [PATCH] A couple more TDM things, including making the built in bots not attack players on the same team. However, this can leave them in a rather hilarious state in which they twitch in place in the middle of a room. It's almost as funny as watching them spin around kicking the walls. git-svn-id: https://svn.eduke32.com/eduke32@270 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 24 +++++++++++++----------- polymer/eduke32/source/player.c | 2 +- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index f88c40704..9b419b59b 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -8169,16 +8169,6 @@ void checkcommandline(int argc,char **argv) ud.m_respawn_monsters = ud.respawn_monsters = 1; ud.m_respawn_items = ud.respawn_items = 1; ud.m_respawn_inventory = ud.respawn_inventory = 1; - { - char k = 1; - for(j=numplayers;j=0;i=connectpoint2[i]) - if (i != snum) + if (i != snum && !((gametype_flags[ud.coop] & GAMETYPE_FLAG_TDM) && ps[snum].team == ps[i].team)) { dist = ksqrt((sprite[ps[i].i].x-x1)*(sprite[ps[i].i].x-x1)+(sprite[ps[i].i].y-y1)*(sprite[ps[i].i].y-y1));