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

Function ObjInitWaypoint

Descent3/ObjInit.cpp:934–949  ·  view source on GitHub ↗

Initialize a waypoint object Returns 1 if ok, 0 if error

Source from the content-addressed store, hash-verified

932// Initialize a waypoint object
933// Returns 1 if ok, 0 if error
934int ObjInitWaypoint(object *objp) {
935 // Set size & shields
936 objp->size = 0.5;
937 objp->shields = 0;
938 // Set up various info
939 SetObjectControlType(objp, CT_NONE);
940 objp->movement_type = MT_NONE;
941 objp->lm_object.used = 0;
942#ifdef EDITOR
943 objp->render_type = RT_EDITOR_SPHERE; // draw cameras as spheres in the editor
944 objp->rtype.sphere_color = GR_RGB(255, 130, 33);
945#else
946 objp->render_type = RT_NONE;
947#endif
948 return 1;
949}
950// Initialize an editor viewer object
951// Returns 1 if ok, 0 if error
952int ObjInitViewer(object *objp) {

Callers 1

ObjInitTypeSpecificFunction · 0.85

Calls 2

SetObjectControlTypeFunction · 0.85
GR_RGBFunction · 0.50

Tested by

no test coverage detected