diff options
author | Aki <please@ignore.pl> | 2022-04-06 21:52:10 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-06 21:54:35 +0200 |
commit | b607369386ed3c410f9721a43b6145c9456af479 (patch) | |
tree | acdf5539b55a46af71e7baf0c27c9c471b17d0f9 /StarsEx/GameWinDX9.cpp | |
parent | 4d7ca74c55edff30e34df1c36824a128211bfeb8 (diff) | |
download | starshatter-b607369386ed3c410f9721a43b6145c9456af479.zip starshatter-b607369386ed3c410f9721a43b6145c9456af479.tar.gz starshatter-b607369386ed3c410f9721a43b6145c9456af479.tar.bz2 |
Removed member variable used to indicate server instance
Diffstat (limited to 'StarsEx/GameWinDX9.cpp')
-rw-r--r-- | StarsEx/GameWinDX9.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/StarsEx/GameWinDX9.cpp b/StarsEx/GameWinDX9.cpp index 7099b90..9571122 100644 --- a/StarsEx/GameWinDX9.cpp +++ b/StarsEx/GameWinDX9.cpp @@ -128,9 +128,6 @@ GameWinDX9::InitApplication(HINSTANCE hInstance) WNDCLASS wc; LOGBRUSH brush = { BS_SOLID, RGB(0,0,0), 0 }; - if (server) - brush.lbColor = RGB(255,255,255); - // Fill in window class structure with parameters that // describe the main window. wc.style = CS_HREDRAW | CS_VREDRAW; @@ -173,12 +170,7 @@ GameWinDX9::InitInstance(HINSTANCE hInstance, int nCmdShow) int s_width = 800; int s_height = 600; - if (server) { - s_width = 320; - s_height = 200; - } - - else if (video_settings) { + if (video_settings) { s_width = video_settings->window_width; s_height = video_settings->window_height; } @@ -244,7 +236,6 @@ GameWinDX9::InitInstance(HINSTANCE hInstance, int nCmdShow) bool GameWinDX9::InitGame() { - if (server) return true; if (!SetupPalette()) { Panic::Panic("Could not set up the palette."); return false; @@ -273,8 +264,6 @@ GameWinDX9::InitGame() bool GameWinDX9::InitVideo() { - if (server) return true; - // create a video factory, and video object: video_factory = new VideoFactory(hwnd); @@ -309,7 +298,6 @@ GameWinDX9::InitVideo() bool GameWinDX9::ResetVideo() { - if (server) return true; if (!video_factory) return InitVideo(); Print(" Reset Video...\n"); @@ -624,8 +612,6 @@ GameWinDX9::Pause(bool f) void GameWinDX9::ShowStats() { - if (server) return; - auto total_time = Clock::GetInstance()->RealTime(); auto stats = Video::GetInstance()->GetStats(); |