mirror of
https://git.code.sf.net/p/quake/game-source
synced 2024-11-10 14:41:57 +00:00
bot kicking now works
This commit is contained in:
parent
1049ca1ac3
commit
78e1059007
3 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -327,6 +327,8 @@ void () BotImpulses =
|
|||
if (!(self = [super initWithEntity:e]))
|
||||
return NIL;
|
||||
|
||||
[self add];
|
||||
|
||||
players[cl_no] = self;
|
||||
|
||||
b_clientno = cl_no + 1;
|
||||
|
|
|
@ -137,6 +137,7 @@ typedef struct bot_data_t bot_data_t;
|
|||
-(integer)fov:(entity)targ;
|
||||
|
||||
+(void)kick;
|
||||
-(void)add;
|
||||
@end
|
||||
|
||||
@interface Bot (Move)
|
||||
|
|
Loading…
Reference in a new issue