View Issue Details

IDProjectCategoryLast Update
0019181AI War 2Gameplay IssueJun 21, 2017 12:13 pm
ReporterBadgerBadger Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version0.401 Ship Batch 6 of 7, And Gimbal Perfoooormance! 
Fixed in Version0.450 Sound! 
Summary0019181: Hitting B selects additional build units
DescriptionSo my understanding is that hitting the B button should select a new unit capable of building. For example, if I have my Ark, a planetary controller and a flagship, hitting B might select my ark. Then hitting B again should change the selection to the Controller. Then hitting B a third time would move it to the flagship. What happens though is that it selects a new unit that can build things In Addition To the old one.

Here is a picture after I hit B the second time. Instead of selecting only the Ark, or only the Controller, it has selected both. Also note that there is no Build menu I can even click on here.
TagsNo tags attached.

Activities

BadgerBadger

Jun 20, 2017 8:53 am

manager  

both_selected.png (1,261,082 bytes)

BadgerBadger

Jun 20, 2017 9:02 am

manager   ~0046330

I believe this is due to an incorrect if statement in Input_MainHandler.cs:

                        GameEntity currentBuilder = null;
                        if ( Engine_AIW2.Instance.GetHasSelection() )
                        {
                            currentBuilder = Window_InGameBuildMenu.GetEntityToUseForBuildMenu();
                            if ( currentBuilder == null ) <======== This should be "!=", not "=="
                                Engine_AIW2.Instance.ClearSelection();
                        }

Once I changed this and recompiled I got the behaviour I expected.

Chris_McElligottPark

Jun 21, 2017 12:13 pm

administrator   ~0046335

Thank you again! You freaking rock!! :D

Issue History

Date Modified Username Field Change
Jun 20, 2017 8:53 am BadgerBadger New Issue
Jun 20, 2017 8:53 am BadgerBadger File Added: both_selected.png
Jun 20, 2017 9:02 am BadgerBadger Note Added: 0046330
Jun 20, 2017 9:44 am BadgerBadger Description Updated
Jun 21, 2017 12:13 pm Chris_McElligottPark Note Added: 0046335
Jun 21, 2017 12:13 pm Chris_McElligottPark Status new => resolved
Jun 21, 2017 12:13 pm Chris_McElligottPark Fixed in Version => 0.450 Sound!
Jun 21, 2017 12:13 pm Chris_McElligottPark Resolution open => fixed
Jun 21, 2017 12:13 pm Chris_McElligottPark Assigned To => Chris_McElligottPark