void WeaponEditorDlg::OnClose() 
{
	UpdateData(TRUE);
	UpdateData(TRUE);
	change_selection();
	update_pilot();
	CDialog::OnClose();
}
Example #2
0
void move(Pilot pilot, Segment current, Segment next)
{
	pilot->segment = next;

	if (current->p1 == pilot)
		current->p1 = NULL;
	else if (current->p2 == pilot)
		current->p2 = NULL;

	update_pilot(pilot, current, next); 
}