diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 13:38:56 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 13:38:56 +0300 |
| commit | 05da53f0344416a5f14211a73f1f48d72c88b954 (patch) | |
| tree | d27d22f56a1bd185447b27223c79c9f97f7cc165 /apps/fparkan-game/src/control_effects.rs | |
| parent | 787279a1f514fbbaf09ca9dd6e5015bdce36635b (diff) | |
| download | fparkan-05da53f0344416a5f14211a73f1f48d72c88b954.tar.xz fparkan-05da53f0344416a5f14211a73f1f48d72c88b954.zip | |
feat(ui): drive a strategic warbot with an automatic gunner
Diffstat (limited to 'apps/fparkan-game/src/control_effects.rs')
| -rw-r--r-- | apps/fparkan-game/src/control_effects.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/fparkan-game/src/control_effects.rs b/apps/fparkan-game/src/control_effects.rs index f10a44d9..490db51c 100644 --- a/apps/fparkan-game/src/control_effects.rs +++ b/apps/fparkan-game/src/control_effects.rs @@ -72,6 +72,7 @@ impl StaticVulkanApp { ) { let weapon_phases: HashMap<_, _> = self .cockpit + .filter(|_| self.auto_gunner_weapons().is_none()) .and_then(|cockpit| { let weapons = self.player_weapon_banks.get(&cockpit.handle)?; Some(weapons.firing_effect_phases(cockpit.object_index)) |
