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

Function InitObjectInfo

Descent3/objinfo.cpp:91–107  ·  view source on GitHub ↗

Sets all objects to unused

Source from the content-addressed store, hash-verified

89
90// Sets all objects to unused
91void InitObjectInfo() {
92 int i;
93
94 for (i = 0; i < MAX_OBJECT_IDS; i++) {
95 Object_info[i].type = OBJ_NONE;
96 Object_info[i].name[0] = 0;
97 // Object_info[i].script_name[0] = 0;
98 Object_info[i].script_name_override[0] = 0;
99 Object_info[i].multi_allowed = 1;
100 Object_info[i].module_name[0] = 0;
101 }
102
103 for (i = 0; i < MAX_OBJECT_TYPES; i++)
104 Num_object_ids[i] = 0;
105
106 atexit(FreeObjectInfo);
107}
108
109#define DEFAULT_OBJECT_SIZE 4.0f
110#define DEFAULT_OBJECT_MASS 1.0f

Callers 1

InitD3Systems1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected