Skip to content

Commit 2579261

Browse files
committed
collapse namespace
1 parent 42af661 commit 2579261

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

code/weapon/weapon.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,13 @@ constexpr int BANK_SWITCH_DELAY = 250; // after switching banks, 1/4 second dela
7878

7979
#define MAX_SPAWN_TYPES_PER_WEAPON 5
8080

81-
namespace Weapon {
8281
// Bitmask filter applied during proximity detonation, evaluated relative to the launcher's team.
8382
// 0 = no relation filter (any relation passes).
84-
namespace Proximity {
83+
namespace Weapon::Proximity {
8584
constexpr uint8_t Relation_Hostile = 1 << 0; // launcher's team attacks target's team
8685
constexpr uint8_t Relation_Friendly = 1 << 1; // same team as launcher
8786
constexpr uint8_t Relation_Neutral = 1 << 2; // neither attacks the other and not same team
8887
}
89-
}
9088

9189
// homing missiles have an extended lifetime so they don't appear to run out of gas before they can hit a moving target at extreme
9290
// range. Check the comment in weapon_set_tracking_info() for more details

0 commit comments

Comments
 (0)