Skip to content

Commit 0e07f44

Browse files
committed
CMEASURE_DETONATE_DISTANCE should be a float
Thanks to Goober5000 for noticing this
1 parent 71cf169 commit 0e07f44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

code/cmeasure/cmeasure.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
int Cmeasures_homing_check = 0;
2323
int Countermeasures_enabled = 1; // Debug, set to 0 means no one can fire countermeasures.
24-
const int CMEASURE_DETONATE_DISTANCE = 40.0f;
24+
const float CMEASURE_DETONATE_DISTANCE = 40.0f;
2525

2626
//Used to set a countermeasure velocity after being launched from a ship as a countermeasure
2727
//ie not as a primary or secondary.

code/cmeasure/cmeasure.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class object;
2222
// Maximum distance at which a countermeasure can be tracked
2323
// If this value is too large, missiles will always be tracking countermeasures.
2424
#define MAX_CMEASURE_TRACK_DIST 300.0f
25-
extern const int CMEASURE_DETONATE_DISTANCE;
25+
extern const float CMEASURE_DETONATE_DISTANCE;
2626

2727
extern int Cmeasures_homing_check;
2828
extern int Countermeasures_enabled;

0 commit comments

Comments
 (0)