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

Function Cinematics_CreateCamera

Descent3/gamecinematics.cpp:457–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457static inline int Cinematics_CreateCamera(void) {
458 int objnum = ObjCreate(OBJ_CAMERA, 0, Player_object->roomnum, &Player_object->pos, NULL);
459 if (objnum == -1)
460 return OBJECT_HANDLE_NONE;
461
462 if (Demo_flags == DF_RECORDING) {
463 DemoWriteObjCreate(OBJ_CAMERA, 0, Player_object->roomnum, &Player_object->pos, NULL, OBJECT_HANDLE_NONE,
464 &Objects[objnum]);
465 }
466
467 return Objects[objnum].handle;
468}
469
470// Cinematic_Start
471//

Callers 2

Cinematic_StartFunction · 0.85
Cinematic_StartCannedFunction · 0.85

Calls 2

ObjCreateFunction · 0.85
DemoWriteObjCreateFunction · 0.85

Tested by

no test coverage detected