@@ -1150,13 +1150,9 @@ LRESULT CFREDView::OnGoodbye(WPARAM wParam, LPARAM lParam)
11501150
11511151void CFREDView::OnEditorsShips ()
11521152{
1153- int adjust = 0 ;
1154-
11551153 Assert (Ship_editor_dialog.GetSafeHwnd ());
1156- if (!Show_sexp_help)
1157- adjust = -SEXP_HELP_BOX_SIZE;
11581154
1159- if (!theApp.init_window (&Ship_wnd_data, &Ship_editor_dialog, adjust ))
1155+ if (!theApp.init_window (&Ship_wnd_data, &Ship_editor_dialog, 0 ))
11601156 return ;
11611157
11621158 Ship_editor_dialog.SetWindowPos (&wndTop, 0 , 0 , 0 , 0 ,
@@ -2329,13 +2325,9 @@ void CFREDView::OnUpdateShowHorizon(CCmdUI* pCmdUI)
23292325
23302326void CFREDView::OnEditorsWing ()
23312327{
2332- int adjust = 0 ;
2333-
23342328 Assert (Wing_editor_dialog.GetSafeHwnd ());
2335- if (!Show_sexp_help)
2336- adjust = -SEXP_HELP_BOX_SIZE;
23372329
2338- if (!theApp.init_window (&Wing_wnd_data, &Wing_editor_dialog, adjust ))
2330+ if (!theApp.init_window (&Wing_wnd_data, &Wing_editor_dialog, 0 ))
23392331 return ;
23402332
23412333 Wing_editor_dialog.SetWindowPos (&wndTop, 0 , 0 , 0 , 0 ,
@@ -3403,11 +3395,7 @@ int CFREDView::fred_check_sexp(int sexp, int type, const char *msg, ...)
34033395
34043396void CFREDView::OnEditorsWaypoint ()
34053397{
3406- int adjust = 0 ;
3407-
34083398 Assert (Waypoint_editor_dialog.GetSafeHwnd ());
3409- if (!Show_sexp_help)
3410- adjust = -SEXP_HELP_BOX_SIZE;
34113399
34123400 if (!theApp.init_window (&Waypoint_wnd_data, &Waypoint_editor_dialog))
34133401 return ;
@@ -4073,16 +4061,6 @@ void CFREDView::OnShowSexpHelp()
40734061 Show_sexp_help = !Show_sexp_help;
40744062 Ship_editor_dialog.show_hide_sexp_help ();
40754063 Wing_editor_dialog.show_hide_sexp_help ();
4076-
4077- if (Event_editor_dlg) {
4078- Event_editor_dlg->GetWindowRect (rect);
4079- if (Show_sexp_help)
4080- rect.bottom += SEXP_HELP_BOX_SIZE;
4081- else
4082- rect.bottom -= SEXP_HELP_BOX_SIZE;
4083-
4084- Event_editor_dlg->MoveWindow (rect);
4085- }
40864064}
40874065
40884066void CFREDView::OnUpdateShowSexpHelp (CCmdUI* pCmdUI)
0 commit comments