summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/GameWinDX9.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'StarsEx/GameWinDX9.cpp')
-rw-r--r--StarsEx/GameWinDX9.cpp16
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();