mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-06-02 10:01:54 +00:00
Due to snax's ping stuff not compiling under windows, I did a little
cleaning. Specificly, the entire menu system has been completely and utterly removed. Flame me AFTER writing a replacement. <=:]
This commit is contained in:
parent
9f6b0bf758
commit
01238243c1
17 changed files with 6 additions and 2317 deletions
|
@ -30,8 +30,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
#include <ctype.h>
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "host.h"
|
||||
#include "bothdefs.h"
|
||||
|
@ -53,7 +51,6 @@
|
|||
#include "view.h"
|
||||
#include "checksum.h"
|
||||
#include "sys.h"
|
||||
#include "menu.h"
|
||||
#include "compat.h"
|
||||
#include "buildnum.h"
|
||||
#include "keys.h"
|
||||
|
@ -97,9 +94,6 @@
|
|||
|
||||
void CL_RemoveQFInfoKeys ();
|
||||
|
||||
// we need to declare some mouse variables here, because the menu system
|
||||
// references them even when on a unix system.
|
||||
|
||||
qboolean noclip_anglehack; // remnant from old quake
|
||||
|
||||
|
||||
|
@ -217,12 +211,6 @@ CL_Quit_f
|
|||
void
|
||||
CL_Quit_f (void)
|
||||
{
|
||||
if (confirm_quit->
|
||||
int_val /* key_dest != key_console *//* && cls.state != ca_dedicated */
|
||||
) {
|
||||
M_Menu_Quit_f ();
|
||||
return;
|
||||
}
|
||||
CL_Disconnect ();
|
||||
Sys_Quit ();
|
||||
}
|
||||
|
@ -1004,29 +992,7 @@ CL_ConnectionlessPacket (void)
|
|||
}
|
||||
// print command from somewhere
|
||||
if (c == A2C_PRINT) {
|
||||
netadr_t addy;
|
||||
server_entry_t *temp;
|
||||
s = MSG_ReadString ();
|
||||
for (temp = slist; temp; temp = temp->next)
|
||||
if (temp->waitstatus)
|
||||
{
|
||||
NET_StringToAdr (temp->server, &addy);
|
||||
if (NET_CompareBaseAdr (net_from, addy))
|
||||
{
|
||||
int i;
|
||||
temp->status = realloc(temp->status, strlen(s) + 1);
|
||||
strcpy(temp->status, s);
|
||||
temp->waitstatus = 0;
|
||||
for (i = 0; i < strlen(temp->status); i++)
|
||||
if (temp->status[i] == '\n')
|
||||
{
|
||||
temp->status[i] = '\\';
|
||||
break;
|
||||
}
|
||||
Con_Printf("status response\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
Con_Printf ("print\n");
|
||||
Con_Print (s);
|
||||
return;
|
||||
|
@ -1071,24 +1037,6 @@ CL_ConnectionlessPacket (void)
|
|||
Con_Printf ("unknown: %c\n", c);
|
||||
}
|
||||
|
||||
void
|
||||
CL_PingPacket (void)
|
||||
{
|
||||
server_entry_t *temp;
|
||||
netadr_t addy;
|
||||
MSG_ReadByte ();;
|
||||
for (temp = slist; temp; temp = temp->next)
|
||||
if ((temp->pingsent.tv_sec || temp->pingsent.tv_usec) && !temp->pongback.tv_sec && !temp->pongback.tv_usec)
|
||||
{
|
||||
NET_StringToAdr (temp->server, &addy);
|
||||
if (NET_CompareBaseAdr (net_from, addy))
|
||||
{
|
||||
gettimeofday(&(temp->pongback), 0);
|
||||
timepassed(&(temp->pingsent), &(temp->pongback));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
=================
|
||||
CL_ReadPackets
|
||||
|
@ -1106,11 +1054,6 @@ CL_ReadPackets (void)
|
|||
CL_ConnectionlessPacket ();
|
||||
continue;
|
||||
}
|
||||
if (*(char *) net_message.data == A2A_ACK)
|
||||
{
|
||||
CL_PingPacket ();
|
||||
continue;
|
||||
}
|
||||
if (net_message.cursize < 8) {
|
||||
Con_Printf ("%s: Runt packet\n", NET_AdrToString (net_from));
|
||||
continue;
|
||||
|
@ -1710,7 +1653,6 @@ Host_Init (void)
|
|||
W_LoadWadFile ("gfx.wad");
|
||||
Key_Init ();
|
||||
Con_Init ();
|
||||
M_Init ();
|
||||
Mod_Init ();
|
||||
|
||||
// Con_Printf ("Exe: "__TIME__" "__DATE__"\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue