| 873 | tce->age += frametime; |
| 874 | } |
| 875 | void RenderSound(tceffect *tce, float frametime, int xoff, int yoff, bool ok_to_render) { |
| 876 | if (!ok_to_render) |
| 877 | return; |
| 878 | ASSERT(tce->type == EFX_SOUND); |
| 879 | tce->age += frametime; |
| 880 | if (tce->soundinfo.started) |
| 881 | return; |
| 882 | tce->soundinfo.started = true; |
| 883 | if (tce->soundinfo.handle != -1) |
| 884 | Sound_system.Play2dSound(tce->soundinfo.handle, MAX_GAME_VOLUME); |
| 885 | } |
| 886 | #define FLASH_SWITCH 1.0f |
| 887 | extern tceffect TCEffects[MAX_TCEFFECTS]; |
| 888 | void RenderButton(tceffect *tce, float frametime, int xoff, int yoff, bool ok_to_render) { |
no test coverage detected