Compile out unused weapon_info_write

Unused since 547193c591 ("Compile out unused bm_write_all") disabled caller bm_write_all.
This commit is contained in:
Kp 2015-12-04 03:36:31 +00:00
parent 6210d1008b
commit edfd337c50
2 changed files with 4 additions and 0 deletions

View file

@ -52,7 +52,9 @@ class stored_laser_level;
struct weapon_info;
struct PHYSFS_File;
#if 0
void weapon_info_write(PHYSFS_File *, const weapon_info &);
#endif
#define REARM_TIME (F1_0)

View file

@ -1514,10 +1514,12 @@ DEFINE_SERIAL_UDT_TO_MESSAGE(v2_weapon_info, w, (w.render_type, w.persistent, w.
DEFINE_SERIAL_UDT_TO_MESSAGE(weapon_info, w, (w.render_type, w.persistent, w.model_num, w.model_num_inner, w.flash_vclip, w.robot_hit_vclip, w.flash_sound, w.wall_hit_vclip, w.fire_count, w.robot_hit_sound, w.ammo_usage, w.weapon_vclip, w.wall_hit_sound, w.destroyable, w.matter, w.bounce, w.homing_flag, w.speedvar, w.flags, w.flash, w.afterburner_size, w.children, w.energy_usage, w.fire_wait, w.multi_damage_scale, w.bitmap, w.blob_size, w.flash_size, w.impact_size, w.strength, w.speed, w.mass, w.drag, w.thrust, w.po_len_to_width_ratio, w.light, w.lifetime, w.damage_radius, w.picture, w.hires_picture));
#endif
#if 0
void weapon_info_write(PHYSFS_File *fp, const weapon_info &w)
{
PHYSFSX_serialize_write(fp, w);
}
#endif
/*
* reads n weapon_info structs from a PHYSFS_file