Fix some warnings across the board.
This commit is contained in:
parent
0557fc8b42
commit
dca95b5c45
4 changed files with 10 additions and 7 deletions
|
@ -363,7 +363,7 @@ bot::RunAI(void)
|
||||||
|
|
||||||
/* if we've got a path (we always should) move the bot */
|
/* if we've got a path (we always should) move the bot */
|
||||||
if (m_iNodes) {
|
if (m_iNodes) {
|
||||||
float goroute;
|
float goroute = 0;
|
||||||
vector vecNewAngles;
|
vector vecNewAngles;
|
||||||
vector vecDirection;
|
vector vecDirection;
|
||||||
|
|
||||||
|
@ -444,14 +444,14 @@ bot::RunAI(void)
|
||||||
if (m_eTarget && enemyvisible && m_flEnemyDist < 256) {
|
if (m_eTarget && enemyvisible && m_flEnemyDist < 256) {
|
||||||
/* we are far away, inch closer */
|
/* we are far away, inch closer */
|
||||||
aimpos = m_eTarget.origin;
|
aimpos = m_eTarget.origin;
|
||||||
printf("going to target\n");
|
//printf("going to target\n");
|
||||||
} else {
|
} else {
|
||||||
goroute = 1;
|
goroute = 1;
|
||||||
}
|
}
|
||||||
} else if (m_wtWeaponType == WPNTYPE_THROW) {
|
} else if (m_wtWeaponType == WPNTYPE_THROW) {
|
||||||
if ((m_eTarget && enemyvisible && !enemydistant) && m_flEnemyDist < 512) {
|
if ((m_eTarget && enemyvisible && !enemydistant) && m_flEnemyDist < 512) {
|
||||||
aimpos = m_eTarget.origin;
|
aimpos = m_eTarget.origin;
|
||||||
printf("going to target\n");
|
//printf("going to target\n");
|
||||||
} else {
|
} else {
|
||||||
goroute = 1;
|
goroute = 1;
|
||||||
}
|
}
|
||||||
|
@ -462,10 +462,10 @@ bot::RunAI(void)
|
||||||
if (goroute) {
|
if (goroute) {
|
||||||
if (m_iCurNode <= BOTROUTE_DESTINATION) {
|
if (m_iCurNode <= BOTROUTE_DESTINATION) {
|
||||||
aimpos = m_vecLastNode;
|
aimpos = m_vecLastNode;
|
||||||
printf("going to last node\n");
|
//printf("going to last node\n");
|
||||||
} else {
|
} else {
|
||||||
aimpos = m_pRoute[m_iCurNode].m_vecDest;
|
aimpos = m_pRoute[m_iCurNode].m_vecDest;
|
||||||
printf("going to next node\n");
|
//printf("going to next node\n");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
RouteClear();
|
RouteClear();
|
||||||
|
|
|
@ -69,6 +69,8 @@ DetailTex_Init(void)
|
||||||
string line;
|
string line;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
|
|
||||||
|
g_detail_initialized = 0;
|
||||||
|
|
||||||
if (!autocvar(r_detailtextures, 0, "High-res detail texture overlays for selected maps"))
|
if (!autocvar(r_detailtextures, 0, "High-res detail texture overlays for selected maps"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -93,4 +95,5 @@ DetailTex_Init(void)
|
||||||
|
|
||||||
print(sprintf("DeailTex initialized with %i entries.\n", n));
|
print(sprintf("DeailTex initialized with %i entries.\n", n));
|
||||||
fclose(fh);
|
fclose(fh);
|
||||||
|
g_detail_initialized = 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ games to tell the entity to start inactive as far as I can tell.
|
||||||
This entity was introduced in Half-Life 2 (2004).
|
This entity was introduced in Half-Life 2 (2004).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int autocvar_r_showDlights = 0;
|
var int autocvar_r_showDlights = 0;
|
||||||
|
|
||||||
enumflags
|
enumflags
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
void Weapons_PickupNotify(base_player pl, int w);
|
void Weapons_PickupNotify(base_player pl, int w);
|
||||||
void Weapons_RefreshAmmo(base_player pl);
|
void Weapons_RefreshAmmo(base_player pl);
|
||||||
void Weapons_SwitchBest(base_player pl);
|
void Weapons_SwitchBest(base_player pl, optional float skip);
|
||||||
int Weapons_AddItem(base_player pl, int w, int startammo);
|
int Weapons_AddItem(base_player pl, int w, int startammo);
|
||||||
void Weapons_RemoveItem(base_player pl, int w);
|
void Weapons_RemoveItem(base_player pl, int w);
|
||||||
void Weapons_InitItem(int w);
|
void Weapons_InitItem(int w);
|
||||||
|
|
Loading…
Reference in a new issue