mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-02-23 03:20:58 +00:00
Remove unneeded 'angles' variables/clearing in ai_dmq3.c
This commit is contained in:
parent
730b917059
commit
8a6c9d1038
1 changed files with 3 additions and 7 deletions
|
@ -3830,7 +3830,6 @@ int BotFuncButtonActivateGoal(bot_state_t *bs, int bspent, bot_activategoal_t *a
|
|||
modelindex = atoi(model+1);
|
||||
if (!modelindex)
|
||||
return qfalse;
|
||||
VectorClear(angles);
|
||||
entitynum = BotModelMinsMaxs(modelindex, ET_MOVER, 0, mins, maxs);
|
||||
//get the lip of the button
|
||||
trap_AAS_FloatForBSPEpairKey(bspent, "lip", &lip);
|
||||
|
@ -3968,7 +3967,7 @@ BotFuncDoorGoal
|
|||
int BotFuncDoorActivateGoal(bot_state_t *bs, int bspent, bot_activategoal_t *activategoal) {
|
||||
int modelindex, entitynum;
|
||||
char model[MAX_INFO_STRING];
|
||||
vec3_t mins, maxs, origin, angles;
|
||||
vec3_t mins, maxs, origin;
|
||||
|
||||
//shoot at the shootable door
|
||||
trap_AAS_ValueForBSPEpairKey(bspent, "model", model, sizeof(model));
|
||||
|
@ -3977,7 +3976,6 @@ int BotFuncDoorActivateGoal(bot_state_t *bs, int bspent, bot_activategoal_t *act
|
|||
modelindex = atoi(model+1);
|
||||
if (!modelindex)
|
||||
return qfalse;
|
||||
VectorClear(angles);
|
||||
entitynum = BotModelMinsMaxs(modelindex, ET_MOVER, 0, mins, maxs);
|
||||
//door origin
|
||||
VectorAdd(mins, maxs, origin);
|
||||
|
@ -4003,7 +4001,7 @@ BotTriggerMultipleGoal
|
|||
int BotTriggerMultipleActivateGoal(bot_state_t *bs, int bspent, bot_activategoal_t *activategoal) {
|
||||
int i, areas[10], numareas, modelindex, entitynum;
|
||||
char model[128];
|
||||
vec3_t start, end, mins, maxs, angles;
|
||||
vec3_t start, end, mins, maxs;
|
||||
vec3_t origin, goalorigin;
|
||||
|
||||
activategoal->shoot = qfalse;
|
||||
|
@ -4015,7 +4013,6 @@ int BotTriggerMultipleActivateGoal(bot_state_t *bs, int bspent, bot_activategoal
|
|||
modelindex = atoi(model+1);
|
||||
if (!modelindex)
|
||||
return qfalse;
|
||||
VectorClear(angles);
|
||||
entitynum = BotModelMinsMaxs(modelindex, 0, CONTENTS_TRIGGER, mins, maxs);
|
||||
//trigger origin
|
||||
VectorAdd(mins, maxs, origin);
|
||||
|
@ -4163,7 +4160,7 @@ int BotGetActivateGoal(bot_state_t *bs, int entitynum, bot_activategoal_t *activ
|
|||
char targetname[10][128];
|
||||
aas_entityinfo_t entinfo;
|
||||
aas_areainfo_t areainfo;
|
||||
vec3_t origin, angles, absmins, absmaxs;
|
||||
vec3_t origin, absmins, absmaxs;
|
||||
|
||||
memset(activategoal, 0, sizeof(bot_activategoal_t));
|
||||
BotEntityInfo(entitynum, &entinfo);
|
||||
|
@ -4207,7 +4204,6 @@ int BotGetActivateGoal(bot_state_t *bs, int entitynum, bot_activategoal_t *activ
|
|||
if (*model) {
|
||||
modelindex = atoi(model+1);
|
||||
if (modelindex) {
|
||||
VectorClear(angles);
|
||||
BotModelMinsMaxs(modelindex, ET_MOVER, 0, absmins, absmaxs);
|
||||
//
|
||||
numareas = trap_AAS_BBoxAreas(absmins, absmaxs, areas, MAX_ACTIVATEAREAS*2);
|
||||
|
|
Loading…
Reference in a new issue