Skip to content

Commit fc0c002

Browse files
committed
actually fixed jumpjet selection bug
1 parent b074cac commit fc0c002

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain/JumpjetContain.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,17 +297,16 @@ void JumpjetContain::onRemoving(Object* rider)
297297
}
298298
}
299299

300+
// Reselect to avoid bug where it stays unresponsive
300301
if (rider->getControllingPlayer() == ThePlayerList->getLocalPlayer())
301302
{
302303
Drawable* riderDraw = rider->getDrawable();
303304
if (riderDraw && riderDraw->isSelected())
304305
{
305-
// add to the current selection (don't clobber other units, e.g. group jumpjet launches)
306-
GameMessage* teamMsg = TheMessageStream->appendMessage(GameMessage::MSG_CREATE_SELECTED_GROUP);
306+
// add to the current selection
307+
GameMessage* teamMsg = TheMessageStream->appendMessage(GameMessage::MSG_CREATE_SELECTED_GROUP_NO_SOUND);
307308
teamMsg->appendBooleanArgument(FALSE);
308309
teamMsg->appendObjectIDArgument(rider->getID());
309-
TheInGameUI->selectDrawable(riderDraw);
310-
TheInGameUI->setDisplayedMaxWarning(FALSE);
311310
}
312311
}
313312

0 commit comments

Comments
 (0)