| 455 | } |
| 456 | |
| 457 | static 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 | // |
no test coverage detected