clean up some unneeded declarations

This commit is contained in:
Bill Currie 2003-07-24 23:16:43 +00:00
parent a2239726e4
commit 14d14761f1
4 changed files with 12 additions and 40 deletions

View file

@ -192,7 +192,7 @@ removed.
{
local vector dist;
dist = realorigin (targ.ent) - ent.origin;
dist = [targ realorigin] - ent.origin;
dist_z = 0;
if (targ == NIL)

View file

@ -113,19 +113,14 @@ for all variable in the bot...
Bot [32] players;
// -------globals-----
integer max_clients;
float real_frametime;
float bot_count, b_options, lasttime;
float waypoint_mode, dump_mode;
integer waypoints;
float direct_route, userid;
float direct_route;
float sv_friction, sv_gravity;
float sv_accelerate, sv_maxspeed, sv_stopspeed;
entity fixer;
Bot route_table;
entity b_temp1, b_temp3;
Waypoint way_head;
float busy_waypoints;
integer busy_waypoints;
float coop = 0; // hack
@ -201,9 +196,7 @@ ClientFixRankings =
bot.switch_wallhug = 0;
btmp = nextent (NIL);
cno = 0;
while (cno < max_clients) {
for (cno = 0; cno < 32; cno++) {
btmp_bot = btmp.@this;
if (!btmp_bot.ishuman) {
if (players[cno])
@ -298,19 +291,6 @@ BotSayTeam =
void ()
BotInit =
{
local entity ent;
local integer numents = 0;
// spawn entities for the physics
ent = nextent (NIL);
max_clients = 0;
while (ent != NIL) {
max_clients++;
ent = nextent (ent);
}
ent = nextent (NIL);
bot_map_load ();
};
@ -440,7 +420,6 @@ void () BotImpulses =
return NIL;
b_clientno = cl_no + 1;
userid++;
ent.colormap = (float) (cl_no + 1);

View file

@ -706,8 +706,8 @@ very good all things considered.
if (coop)
return;
// don't waypoint in single player
if (max_clients < 2)
return;
//XXX if (max_clients < 2)
//XXX return;
// if you're dead
else if (ent.health <= 0) {
if (dynpoint) {

View file

@ -234,17 +234,16 @@
// -------globals-----
@extern Bot [32] players;
@extern integer max_clients;
@extern float real_frametime;
@extern float bot_count, b_options, lasttime;
@extern float waypoint_mode, dump_mode;
@extern float direct_route, userid;
@extern float bot_count, b_options;
@extern float lasttime;
@extern float waypoint_mode;
@extern float dump_mode;
@extern float direct_route;
@extern float sv_friction, sv_gravity;
@extern float sv_accelerate, sv_maxspeed, sv_stopspeed;
@extern entity fixer;
@extern Bot route_table;
@extern entity b_temp1, b_temp3;
@extern float busy_waypoints;
@extern integer busy_waypoints;
@extern float coop;
@ -257,10 +256,6 @@
// rankings
@extern integer (entity e) ClientNumber;
@extern integer(integer clientno) ClientBitFlag;
@extern integer() ClientNextAvailable;
@extern void(integer whatbot, integer whatskill) BotConnect;
@extern void(entity bot) BotDisconnect;
@extern void(float clientno) BotInvalidClientNo;
@extern void(entity who) UpdateClient;
@extern void(vector org, vector bit1, integer bit4, integer flargs) make_way;
@ -278,11 +273,9 @@
@extern void() CL_KeyMove;
// ai & misc
@extern float(entity targ) fov;
@extern float(float y1, float y2) angcomp;
@extern float(entity ent, entity targ) sisible;
@extern vector(entity ent) realorigin;
@extern void() BotImpulses;
@extern float(float v) frik_anglemod;
@extern void() bot_chat;
@extern void(float tpic) bot_start_topic;