rem: STAMP s; HSTARSHIP hStarShip; STARSHIPPTR StarShipPtr; RECT r;  GetFrameRect (SetAbsFrameIndex (MeleeFrame, 27), &r);  hStarShip = GetStarShipFromIndex (&master_q, pMeleeState->CurIndex); StarShipPtr = LockStarShip (&master_q, hStarShip); s.origin.x = r.corner.x + 20 + (pMeleeState->CurIndex % NUM_PICK_COLS) * 18; s.origin.y = r.corner.y + 5 + (pMeleeState->CurIndex / NUM_PICK_COLS) * 18; s.frame = StarShipPtr->RaceDescPtr->ship_info.icons; DrawStamp (&s); UnlockStarShip (&master_q, hStarShip);
add: DrawPickIcon (pMeleeState->CurIndex, 1);
context: Deselect (BYTE opt){	switch (opt)	{		case START_MELEE:			DrawMeleeIcon (25);			break;		case LOAD_TOP:		case LOAD_BOT:			if (pMeleeState->InputFunc != DoLoadTeam)				DrawMeleeIcon (opt == LOAD_TOP ? 17 : 22);			else				DrawFileStrings (pMeleeState, 0);			break;		case SAVE_TOP:			DrawMeleeIcon (18);			break;		case SAVE_BOT:			DrawMeleeIcon (21);			break;		case CONTROLS_TOP:		case CONTROLS_BOT:		{			COUNT which_side;						which_side = opt == CONTROLS_TOP ? 1 : 0;			DrawControls (which_side, FALSE);			break;		}		case EDIT_MELEE:			if (pMeleeState->InputFunc == DoEdit)			{				if (pMeleeState->row < NUM_MELEE_ROWS)					DrawShipBox (pMeleeState, FALSE);				else if (pMeleeState->CurIndex == (BYTE)~0)					DrawTeamString (pMeleeState, 0);			}			else if (pMeleeState->InputFunc == DoPickShip)			{				STAMP s;				HSTARSHIP hStarShip;				STARSHIPPTR StarShipPtr;				RECT r;							GetFrameRect (SetAbsFrameIndex (MeleeFrame, 27), &r);				hStarShip = GetStarShipFromIndex (&master_q,						pMeleeState->CurIndex);				StarShipPtr = LockStarShip (&master_q, hStarShip);				s.origin.x = r.corner.x + 20						+ (pMeleeState->CurIndex % NUM_PICK_COLS) * 18;				s.origin.y = r.corner.y + 5						+ (pMeleeState->CurIndex / NUM_PICK_COLS) * 18;				s.frame = StarShipPtr->RaceDescPtr->ship_info.icons;				DrawStamp (&s);				UnlockStarShip (&master_q, hStarShip);			}			break;	}}