Removing support for NS 2.01.

This commit is contained in:
Steve Dudenhoeffer 2004-07-22 13:11:12 +00:00
parent 521d6ee7d2
commit 98d1644ade

View File

@ -65,11 +65,8 @@ static cell AMX_NATIVE_CALL ns_get_build(AMX *amx, cell *params)
int iNumber = params[3]; int iNumber = params[3];
edict_t* pBuild = NULL; edict_t* pBuild = NULL;
int iCount=0; int iCount=0;
int nsversion=params[4];
while ((pBuild = UTIL_FindEntityByString(pBuild,"classname",buildtype)) != NULL) while ((pBuild = UTIL_FindEntityByString(pBuild,"classname",buildtype)) != NULL)
{
if (nsversion == 3)
{ {
if (iBuiltOnly > 0) if (iBuiltOnly > 0)
{ {
@ -92,33 +89,6 @@ static cell AMX_NATIVE_CALL ns_get_build(AMX *amx, cell *params)
if (iNumber > 0 && iCount == iNumber) if (iNumber > 0 && iCount == iNumber)
return ENTINDEX(pBuild); return ENTINDEX(pBuild);
} }
else if (nsversion == 2)
{
if (iBuiltOnly > 0)
{
if (FStrEq("team_hive",buildtype))
{
if (pBuild->v.fuser1 >= 1000)
{
iCount++;
}
}
else
{
if (pBuild->v.fuser1 >= 1000 || pBuild->v.iuser4 & MASK_ELECTRICITY)
{
iCount++;
}
}
}
else
{
iCount++;
}
if (iNumber > 0 && iCount == iNumber)
return ENTINDEX(pBuild);
}
}
return iCount++; return iCount++;
} }