Returns true if the passed in primitive is old (ie needs to be updated from the network)
| 1976 | |
| 1977 | // Returns true if the passed in primitive is old (ie needs to be updated from the network) |
| 1978 | bool 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) |
no test coverage detected