| 435 | } |
| 436 | |
| 437 | void DemoStartNewFrame() { |
| 438 | if (Demo_flags != DF_RECORDING) { |
| 439 | return; |
| 440 | } |
| 441 | |
| 442 | // Start with the gametime of this frame |
| 443 | cf_WriteByte(Demo_cfp, DT_NEW_FRAME); |
| 444 | cf_WriteFloat(Demo_cfp, Gametime); |
| 445 | cf_WriteFloat(Demo_cfp, Frametime); |
| 446 | |
| 447 | if ((timer_GetTime() - Demo_last_pinfo) >= DEMO_PINFO_UPDATE) { |
| 448 | DemoWritePlayerInfo(); |
| 449 | Demo_last_pinfo = timer_GetTime(); |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | // Store object num, position, orientation |
| 454 | // WB info, Anim states |
no test coverage detected