summaryrefslogtreecommitdiffhomepage
path: root/Starshatter
diff options
context:
space:
mode:
Diffstat (limited to 'Starshatter')
-rw-r--r--Starshatter/Main.cpp37
1 files changed, 8 insertions, 29 deletions
diff --git a/Starshatter/Main.cpp b/Starshatter/Main.cpp
index a71476d..f2417e9 100644
--- a/Starshatter/Main.cpp
+++ b/Starshatter/Main.cpp
@@ -8,7 +8,6 @@
#include "Starshatter.h"
-#include "StarServer.h"
#include "HUDView.h"
#include "Utils.h"
@@ -52,7 +51,6 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
{
int result = 0;
int test_mode = 0;
- int do_server = 0;
if (strstr(lpCmdLine, "-server"))
AssignErrLog(fopen("serverlog.txt", "wb"));
@@ -80,11 +78,6 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
NetBrokerClient::Disable();
}
- if (strstr(lpCmdLine, "-server")) {
- do_server = 1;
- Print(" Request Standalone Server Mode\n");
- }
-
char* d3dinfo = strstr(lpCmdLine, "-d3d");
if (d3dinfo) {
int n = d3dinfo[4] - '0';
@@ -101,32 +94,18 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
try {
NetLayer net;
- if (do_server) {
- StarServer* server = new StarServer();
-
- if (server->Init(hInstance, hPrevInstance, lpCmdLine, nCmdShow))
- result = server->Run();
-
- Print("\n+====================================================================+\n");
- Print(" Begin Shutdown...\n");
-
- delete server;
- }
-
- else {
- Starshatter* stars = 0;
+ Starshatter* stars = 0;
- stars = new Starshatter;
- stars->SetTestMode(test_mode);
+ stars = new Starshatter;
+ stars->SetTestMode(test_mode);
- if (stars->Init(hInstance, hPrevInstance, lpCmdLine, nCmdShow))
- result = stars->Run();
+ if (stars->Init(hInstance, hPrevInstance, lpCmdLine, nCmdShow))
+ result = stars->Run();
- Print("\n+====================================================================+\n");
- Print(" Begin Shutdown...\n");
+ Print("\n+====================================================================+\n");
+ Print(" Begin Shutdown...\n");
- delete stars;
- }
+ delete stars;
Token::close();