diff options
author | Simon Howard | 2011-10-13 19:46:45 +0000 |
---|---|---|
committer | Simon Howard | 2011-10-13 19:46:45 +0000 |
commit | cb142afe2e4bfa756249cd0e7e17ddd3ec820a87 (patch) | |
tree | 8908ff09e61384fc0b033805df95ceb271a433cd /src/strife/d_main.c | |
parent | a1c823693b136d4534a4dec4307a27411a37dd4a (diff) | |
download | chocolate-doom-cb142afe2e4bfa756249cd0e7e17ddd3ec820a87.tar.gz chocolate-doom-cb142afe2e4bfa756249cd0e7e17ddd3ec820a87.tar.bz2 chocolate-doom-cb142afe2e4bfa756249cd0e7e17ddd3ec820a87.zip |
Update Strife main loop code to use d_loop.c common main loop code.
Working multiplayer!
Subversion-branch: /branches/v2-branch
Subversion-revision: 2416
Diffstat (limited to 'src/strife/d_main.c')
-rw-r--r-- | src/strife/d_main.c | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/src/strife/d_main.c b/src/strife/d_main.c index e8f76dd9..85a0bcde 100644 --- a/src/strife/d_main.c +++ b/src/strife/d_main.c @@ -40,7 +40,6 @@ #include "dstrings.h" #include "doomfeatures.h" -#undef FEATURE_MULTIPLAYER // TODO: Temporary disable for Strife #include "sounds.h" #include "d_iwad.h" @@ -114,7 +113,6 @@ boolean fastparm; // checkparm of -fast boolean flipparm; // [STRIFE] haleyjd 20110629: checkparm of -flip boolean showintro = true; // [STRIFE] checkparm of -nograph, disables intro -boolean singletics = false; // debug flag to cancel adaptiveness //extern int soundVolume; @@ -163,7 +161,6 @@ static char *nickname = NULL; void D_CheckNetGame (void); void D_ProcessEvents (void); -void G_BuildTiccmd (ticcmd_t* cmd); void D_DoAdvanceDemo (void); @@ -521,22 +518,7 @@ void D_DoomLoop (void) I_StartFrame (); // process one or more tics - if (singletics) - { - I_StartTic (); - D_ProcessEvents (); - G_BuildTiccmd (&netcmds[consoleplayer][maketic%BACKUPTICS]); - if (advancedemo) - D_DoAdvanceDemo (); - M_Ticker (); - G_Ticker (); - gametic++; - maketic++; - } - else - { - TryRunTics (); // will run at least one tic - } + TryRunTics (); // will run at least one tic S_UpdateSounds (players[consoleplayer].mo);// move positional sounds @@ -1383,9 +1365,7 @@ void D_DoomMain (void) if (M_CheckParm("-search")) { - printf("\nSearching for servers on Internet ...\n"); - p = NET_MasterQuery(NET_QueryPrintCallback, NULL); - printf("\n%i server(s) found.\n", p); + NET_MasterQuery(); exit(0); } @@ -1413,9 +1393,7 @@ void D_DoomMain (void) if (M_CheckParm("-localsearch")) { - printf("\nSearching for servers on local LAN ...\n"); - p = NET_LANQuery(NET_QueryPrintCallback, NULL); - printf("\n%i server(s) found.\n", p); + NET_LANQuery(); exit(0); } @@ -1975,4 +1953,3 @@ void D_DoomMain (void) D_DoomLoop (); // never returns } - |