| 256 | } |
| 257 | |
| 258 | bool IsFileInWeaponPage(char *filename) { |
| 259 | mngs_weapon_page weappage; |
| 260 | int i, j; |
| 261 | |
| 262 | for (i = 0; i < MAX_WEAPONS; i++) { |
| 263 | if (Weapons[i].used) { |
| 264 | mng_AssignWeaponToWeaponPage(i, &weappage); |
| 265 | |
| 266 | if (!stricmp(filename, weappage.hud_image_name)) |
| 267 | return true; |
| 268 | if (!stricmp(filename, weappage.fire_image_name)) |
| 269 | return true; |
| 270 | if (!stricmp(filename, weappage.explode_image_name)) |
| 271 | return true; |
| 272 | if (!stricmp(filename, weappage.smoke_image_name)) |
| 273 | return true; |
| 274 | if (!stricmp(filename, weappage.scorch_image_name)) |
| 275 | return true; |
| 276 | if (!stricmp(filename, weappage.icon_name)) |
| 277 | return true; |
| 278 | if (!stricmp(filename, weappage.spawn_name)) |
| 279 | return true; |
| 280 | if (!stricmp(filename, weappage.alternate_spawn_name)) |
| 281 | return true; |
| 282 | if (!stricmp(filename, weappage.particle_name)) |
| 283 | return true; |
| 284 | if (!stricmp(filename, weappage.robot_spawn_name)) |
| 285 | return true; |
| 286 | for (j = 0; j < MAX_WEAPON_SOUNDS; j++) { |
| 287 | if (!stricmp(filename, weappage.sound_name[j])) |
| 288 | return true; |
| 289 | } |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | return false; |
| 294 | } |
| 295 | |
| 296 | void COrphanRemoveDlg::Enable(bool enable) { |
| 297 | CWnd *wnd; |
no test coverage detected