Frees up all the Objects and any memory allocated
| 226 | |
| 227 | // Frees up all the Objects and any memory allocated |
| 228 | void FreeObjectInfo(void) { |
| 229 | for (int i = 0; i < MAX_OBJECT_IDS; i++) { |
| 230 | if (Object_info[i].type != OBJ_NONE) |
| 231 | FreeObjectID(i); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | // Find an object with the given type. Returns -1 if none found. |
| 236 | int GetObjectID(int type) { |
nothing calls this directly
no test coverage detected