r3838 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Jul 15 05:44:02 EDT 2008
Author: div0
Date: 2008-07-15 05:43:53 -0400 (Tue, 15 Jul 2008)
New Revision: 3838
Modified:
trunk/data/qcsrc/server/bots.qc
Log:
netname is odd
Modified: trunk/data/qcsrc/server/bots.qc
===================================================================
--- trunk/data/qcsrc/server/bots.qc 2008-07-15 09:38:14 UTC (rev 3837)
+++ trunk/data/qcsrc/server/bots.qc 2008-07-15 09:43:53 UTC (rev 3838)
@@ -1,6 +1,7 @@
// rough simulation of walking from one point to another to test if a path
// can be traveled, used by havocbot
+.string netname_freeme;
vector stepheightvec;
float navigation_testtracewalk;
@@ -1491,10 +1492,10 @@
// randomly pick a skin
bot_skinfornumber(floor(random() * BOTSKINS));
}
- if(!cvar("g_campaign"))
- self.netname = strzone(strcat(prefix, name, suffix));
- else
- self.netname = strzone(name);
+ if(!cvar("g_campaign"))
+ self.netname = self.netname_freeme = strzone(strcat(prefix, name, suffix));
+ else
+ self.netname = self.netname_freeme = strzone(name);
};
void bot_endgame()
@@ -1903,7 +1904,7 @@
{
if (clienttype(self) != CLIENTTYPE_BOT)
return;
- strunzone(self.netname);
+ strunzone(self.netname_freeme);
self.netname = string_null;
}
More information about the nexuiz-commits
mailing list