equal
deleted
inserted
replaced
683 PlayerCompanyWndProc |
683 PlayerCompanyWndProc |
684 }; |
684 }; |
685 |
685 |
686 void ShowPlayerCompany(PlayerID player) |
686 void ShowPlayerCompany(PlayerID player) |
687 { |
687 { |
688 Window *w; |
688 Window* w; |
689 w = AllocateWindowDescFront(player == _local_player ? &_my_player_company_desc : &_other_player_company_desc, player); |
689 |
690 if (w) |
690 w = AllocateWindowDescFront(player == _local_player ? &_my_player_company_desc : &_other_player_company_desc, player); |
691 w->caption_color = w->window_number; |
691 if (w != NULL) w->caption_color = w->window_number; |
692 } |
692 } |
693 |
693 |
694 |
694 |
695 |
695 |
696 static void BuyCompanyWndProc(Window *w, WindowEvent *e) |
696 static void BuyCompanyWndProc(Window *w, WindowEvent *e) |
879 |
879 |
880 // pause game to show the chart |
880 // pause game to show the chart |
881 if (!_networking) DoCommandP(0, 1, 0, NULL, CMD_PAUSE); |
881 if (!_networking) DoCommandP(0, 1, 0, NULL, CMD_PAUSE); |
882 |
882 |
883 /* Close all always on-top windows to get a clean screen */ |
883 /* Close all always on-top windows to get a clean screen */ |
884 if (_game_mode != GM_MENU) HideVitalWindows(); |
884 if (_game_mode != GM_MENU) HideVitalWindows(); |
885 |
885 |
886 DeleteWindowByClass(WC_HIGHSCORE); |
886 DeleteWindowByClass(WC_HIGHSCORE); |
887 w = AllocateWindowDesc(&_highscore_desc); |
887 w = AllocateWindowDesc(&_highscore_desc); |
888 |
888 |
889 if (w != NULL) { |
889 if (w != NULL) { |