| 364 | |
| 365 | #ifdef CONVENIENT_ANIMATION_FILE_DEBUG_THING |
| 366 | void SpewDebugStuffToFile(animation_t *bgGlobalAnimations) |
| 367 | { |
| 368 | char BGPAFtext[40000]; |
| 369 | fileHandle_t f; |
| 370 | int i = 0; |
| 371 | |
| 372 | gi.FS_FOpenFile("file_of_debug_stuff_SP.txt", &f, FS_WRITE); |
| 373 | |
| 374 | if (!f) |
| 375 | { |
| 376 | return; |
| 377 | } |
| 378 | |
| 379 | BGPAFtext[0] = 0; |
| 380 | |
| 381 | while (i < MAX_ANIMATIONS) |
| 382 | { |
| 383 | strcat(BGPAFtext, va("%i %i\n", i, bgGlobalAnimations[i].frameLerp)); |
| 384 | i++; |
| 385 | } |
| 386 | |
| 387 | gi.FS_Write(BGPAFtext, strlen(BGPAFtext), f); |
| 388 | gi.FS_FCloseFile(f); |
| 389 | } |
| 390 | #endif |
| 391 | |
| 392 | int CG_CheckAnimFrameForEventType( animevent_t *animEvents, int keyFrame, animEventType_t eventType, unsigned short modelIndex ) |
no test coverage detected