mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-03-27 12:51:13 +00:00
Fixing warnings and an error in bot code
This commit is contained in:
parent
6021992791
commit
a89a60a42f
2 changed files with 15 additions and 2 deletions
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.8 2002/04/01 01:02:22 jbravo
|
||||
// Fixing warnings and an error in bot code
|
||||
//
|
||||
// Revision 1.7 2002/03/31 19:16:56 makro
|
||||
// Bandaging, reloading, opening rotating doors (still needs a lot of), shooting breakables
|
||||
//
|
||||
|
@ -60,7 +63,9 @@
|
|||
//Blaze: was there a extra ../ here?
|
||||
#include "../ui/menudef.h"
|
||||
|
||||
|
||||
// JBravo: for warnings
|
||||
void BotMoveTowardsEnt(bot_state_t *bs, vec3_t dest, int dist);
|
||||
void Cmd_Bandage (gentity_t *ent);
|
||||
|
||||
//goal flag, see be_ai_goal.h for the other GFL_*
|
||||
#define GFL_AIR 128
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.10 2002/04/01 01:02:22 jbravo
|
||||
// Fixing warnings and an error in bot code
|
||||
//
|
||||
// Revision 1.9 2002/03/31 19:16:56 makro
|
||||
// Bandaging, reloading, opening rotating doors (still needs a lot of), shooting breakables
|
||||
//
|
||||
|
@ -68,6 +71,9 @@
|
|||
//Blaze: was there a extra ../ here?
|
||||
#include "../ui/menudef.h"
|
||||
|
||||
// JBravo: for warnings
|
||||
void Cmd_Bandage (gentity_t *ent);
|
||||
|
||||
// from aasfile.h
|
||||
#define AREACONTENTS_MOVER 1024
|
||||
#define AREACONTENTS_MODELNUMSHIFT 24
|
||||
|
@ -4463,7 +4469,9 @@ int BotGetActivateGoal(bot_state_t *bs, int entitynum, bot_activategoal_t *activ
|
|||
//if door is moving, wait till it stops
|
||||
if ( g_entities[entitynum].moverState == ROTATOR_1TO2 || g_entities[entitynum].moverState == ROTATOR_2TO1 || (g_entities[entitynum].targetname) ) {
|
||||
BotMoveTowardsEnt(bs, entinfo.origin, -80);
|
||||
if ( g_entities[entitynum].targetname = NULL ) {
|
||||
// if ( g_entities[entitynum].targetname = NULL ) {
|
||||
// JBravo: assuming Makro meant == and not =
|
||||
if ( g_entities[entitynum].targetname == NULL ) {
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue