File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -799,18 +799,20 @@ namespace RTE {
799
799
}
800
800
801
801
// Now set the selected tech's module index as what the metaplayer is going to use
802
- if (pTechItem)
802
+ if (pTechItem) {
803
803
if (pTechItem->m_ExtraIndex == -2 )
804
804
pGameActivity->SetTeamTech (team, " -All-" );
805
805
else
806
806
pGameActivity->SetTeamTech (team, g_PresetMan.GetDataModuleName (pTechItem->m_ExtraIndex ));
807
+ }
807
808
}
808
809
809
810
// Set up AI skill levels
810
- if (m_apTeamAISkillSlider[team]->IsEnabled ())
811
+ if (m_apTeamAISkillSlider[team]->IsEnabled ()) {
811
812
pGameActivity->SetTeamAISkill (team, m_apTeamAISkillSlider[team]->GetValue ());
812
- else
813
+ } else {
813
814
pGameActivity->SetTeamAISkill (team, AISkillSetting::DefaultSkill);
815
+ }
814
816
}
815
817
816
818
// Force close all previously opened files
Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ void GibEditorGUI::Update() {
420
420
m_CursorPos = g_SceneMan.SnapPosition (m_CursorPos);
421
421
}
422
422
423
- if (m_pController->IsState (RELEASE_PRIMARY))
423
+ if (m_pController->IsState (RELEASE_PRIMARY)) {
424
424
425
425
// Cancel placing if secondary button is pressed
426
426
if (m_pController->IsState (PRESS_SECONDARY) || m_pController->IsState (PIE_MENU_ACTIVE)) {
@@ -449,6 +449,7 @@ void GibEditorGUI::Update() {
449
449
// Go back to previous mode
450
450
m_EditorGUIMode = m_PreviousMode;
451
451
}
452
+ }
452
453
453
454
// Set the facing of AHumans based on right/left cursor movements
454
455
AHuman* pAHuman = dynamic_cast <AHuman*>(m_pCurrentGib);
You can’t perform that action at this time.
0 commit comments