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

Function ObjInitRoom

Descent3/ObjInit.cpp:1091–1103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1089 return 1;
1090}
1091int ObjInitRoom(object *objp) {
1092 // Set up movement info
1093 objp->movement_type = MT_NONE;
1094 SetObjectControlType(objp, CT_NONE);
1095 // Set up render info
1096 objp->render_type = RT_ROOM; // rendering handled as special case
1097 // I have no idea about this stuff
1098 objp->lighting_render_type = LRT_STATIC;
1099 objp->lm_object.used = 0;
1100 objp->flags |= OF_POLYGON_OBJECT;
1101
1102 return 1;
1103}
1104// Set all the type-specific info for this object
1105// Returns 1 if ok, 0 if error
1106int ObjInitTypeSpecific(object *objp, bool reinitializing) {

Callers 1

ObjInitTypeSpecificFunction · 0.85

Calls 1

SetObjectControlTypeFunction · 0.85

Tested by

no test coverage detected