MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / IsPrimitiveOld

Function IsPrimitiveOld

manage/manage.cpp:1978–1986  ·  view source on GitHub ↗

Returns true if the passed in primitive is old (ie needs to be updated from the network)

Source from the content-addressed store, hash-verified

1976
1977// Returns true if the passed in primitive is old (ie needs to be updated from the network)
1978bool IsPrimitiveOld(char *name) {
1979 int primtype = GetPrimType(name);
1980 for (int i = 0; i < Num_old_files; i++) {
1981 if (OldFiles[i].type == primtype && !stricmp(OldFiles[i].name, name))
1982 return true;
1983 }
1984
1985 return false;
1986}
1987
1988// Updates a primitive if needed
1989// Localname = local version of the primname (with path)

Callers 1

UpdatePrimitiveFunction · 0.85

Calls 1

GetPrimTypeFunction · 0.85

Tested by

no test coverage detected