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)