File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -615,6 +615,20 @@ GameMessageDisposition SelectionTranslator::translateGameMessage(const GameMessa
615615 break ;
616616 }
617617
618+ #if !RTS_GENERALS && RETAIL_COMPATIBLE_BUG
619+ // TheSuperHackers @info
620+ // This fixes the hack in addDrawableToList that restores the exploit that prevents cargo
621+ // units from being properly selected when drag-selecting for non-alternate mouse mode where
622+ // the same input is used for both selection and issuing enter commands.
623+ if (isPoint && drawablesThatWillSelect.size () == 2 )
624+ {
625+ DrawableListIt it = drawablesThatWillSelect.begin ();
626+
627+ if (*it == *(++it))
628+ drawablesThatWillSelect.pop_back ();
629+ }
630+ #endif
631+
618632 // if there were drawables in the region, then we should determine if there is a context
619633 // sensitive command that should take place. If there is, then this isn't a selection thing
620634 const DrawableList *currentList = TheInGameUI->getAllSelectedDrawables ();
You can’t perform that action at this time.
0 commit comments