Skip to content

Commit 1c46210

Browse files
Remove unused function grenade_compute_damage().
1 parent 8dd6190 commit 1c46210

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Diff for: src/GameSrc/grenades.c

-17
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
5959
// Internal Prototypes
6060
//----------------
6161
void convert_grenade_to_explosion(ExplosionData *edata, int triple);
62-
ubyte grenade_compute_damage(ObjID target, int wpn_triple, int power_level, ubyte *effect);
6362
ObjID explosion_ray_cast_attack(ObjID gren_id, ObjID target, ObjLoc *gren_loc, fix radius, fix mass, fix speed);
6463
void do_object_explosion(ObjID id);
6564
uchar activate_grenade_on_cursor(void);
@@ -102,22 +101,6 @@ void convert_grenade_to_explosion(ExplosionData *edata, int triple) {
102101
edata->penet = GrenadeProps[ctrip].penetration;
103102
}
104103

105-
// ----------------------------------------------------------------------
106-
// grenade_compute_damage()
107-
//
108-
109-
ubyte grenade_compute_damage(ObjID target, int wpn_triple, int power_level, ubyte *effect) {
110-
ubyte effect_class =
111-
(objs[target].obclass == CLASS_CRITTER) ? CritterProps[CPNUM(target)].hit_effect : NON_CRITTER_EFFECT;
112-
113-
*effect = effect_matrix[effect_class][GREN_TYPE][0];
114-
115-
return (compute_damage(target, GrenadeProps[CPTRIP(wpn_triple)].damage_type,
116-
GrenadeProps[CPTRIP(wpn_triple)].damage_modifier,
117-
GrenadeProps[CPTRIP(wpn_triple)].offense_value, GrenadeProps[CPTRIP(wpn_triple)].penetration,
118-
power_level, NULL, NULL, GREN_TYPE));
119-
}
120-
121104
extern ObjID terrain_hit_exclusion;
122105

123106
// ----------------------------------------------------------------------

0 commit comments

Comments
 (0)