more warning fixes
This commit is contained in:
@ -108,4 +108,4 @@ void CPlayer::Reset()
|
||||
olddeadflag=0;
|
||||
oldteam=0;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -43,4 +43,4 @@ vec3_t CSpawn::getpoint(int type, int num)
|
||||
a=a->next;
|
||||
}
|
||||
return Vector(0.0,0.0,0.0);
|
||||
}
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ static cell AMX_NATIVE_CALL ns_get_speedchange(AMX *amx, cell *params)
|
||||
{
|
||||
// Params: get_speedchange(index)
|
||||
int index=params[1];
|
||||
if (!(params[1]>0 && params[1]<=gpGlobals->maxClients))
|
||||
if (!(index>0 && index<=gpGlobals->maxClients))
|
||||
return 0;
|
||||
CPlayer *player = GET_PLAYER_I(params[1]);
|
||||
return player->speedchange;
|
||||
|
@ -401,8 +401,7 @@ int LogToIndex(char logline[128])
|
||||
}
|
||||
cindex[x]='\0';
|
||||
// Now we have their name, now cycle through all players to find which index it is
|
||||
x=1;
|
||||
for (x;x<=gpGlobals->maxClients;x++)
|
||||
for (x=1;x<=gpGlobals->maxClients;x++)
|
||||
{
|
||||
cname=strdup(cindex);
|
||||
if (!FNullEnt(INDEXENT2(x)))
|
||||
@ -418,7 +417,7 @@ int LogToIndex(char logline[128])
|
||||
int Find_Building_Hive(void)
|
||||
{
|
||||
edict_t *pEntity=NULL;
|
||||
while (pEntity = UTIL_FindEntityByString(pEntity,"classname","team_hive"))
|
||||
while ((pEntity = UTIL_FindEntityByString(pEntity,"classname","team_hive")))
|
||||
{
|
||||
if (pEntity->v.health > 0 && pEntity->v.solid > 0 && pEntity->v.fuser1 < 1000)
|
||||
{
|
||||
|
Reference in New Issue
Block a user