save viseffects
| 985 | |
| 986 | // save viseffects |
| 987 | void SGSVisEffects(CFILE *fp) { |
| 988 | int i, count = 0; |
| 989 | |
| 990 | // count up all viseffects to write out. |
| 991 | for (i = 0; i <= Highest_vis_effect_index; i++) |
| 992 | if (VisEffects[i].type != VIS_NONE) |
| 993 | count++; |
| 994 | |
| 995 | gs_WriteShort(fp, (int16_t)count); |
| 996 | |
| 997 | for (i = 0; i <= Highest_vis_effect_index; i++) { |
| 998 | if (VisEffects[i].type != VIS_NONE) |
| 999 | cf_WriteBytes((uint8_t *)&VisEffects[i], sizeof(vis_effect), fp); |
| 1000 | } |
| 1001 | } |
| 1002 | |
| 1003 | extern int Physics_NumLinked; |
| 1004 | extern int PhysicsLinkList[MAX_OBJECTS]; |
no test coverage detected