diff --git a/common/main/fwd-weapon.h b/common/main/fwd-weapon.h index a1960c5c1..52e527a10 100644 --- a/common/main/fwd-weapon.h +++ b/common/main/fwd-weapon.h @@ -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) diff --git a/similar/main/weapon.cpp b/similar/main/weapon.cpp index 2a2cfa696..7a8d66601 100644 --- a/similar/main/weapon.cpp +++ b/similar/main/weapon.cpp @@ -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