Skip to content

Commit e46ad43

Browse files
committed
bugfix: Add a new hack to fix the existing hack to restore the cargo selection exploit
1 parent 06c6b3b commit e46ad43

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

GeneralsMD/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)