bot kicking now works

This commit is contained in:
Bill Currie 2003-08-25 05:12:41 +00:00
parent 1049ca1ac3
commit 78e1059007
3 changed files with 10 additions and 0 deletions

View file

@ -117,6 +117,13 @@ Sets bot's name and colors
[ty disconnect];
}
-(void)add
{
if (!bot_array)
bot_array = [[Array alloc] init];
[bot_array addItem: self];
}
/*
fov

View file

@ -327,6 +327,8 @@ void () BotImpulses =
if (!(self = [super initWithEntity:e]))
return NIL;
[self add];
players[cl_no] = self;
b_clientno = cl_no + 1;

View file

@ -137,6 +137,7 @@ typedef struct bot_data_t bot_data_t;
-(integer)fov:(entity)targ;
+(void)kick;
-(void)add;
@end
@interface Bot (Move)