mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-07 08:21:59 +00:00
NQ's menu is gone too, menu.c is laying around till I add more info to the
TODO file, then it dies too.
This commit is contained in:
parent
cf3629b3b3
commit
3ab3941c81
12 changed files with 39 additions and 86 deletions
|
@ -5,7 +5,7 @@ EXTRA_DIST = adivtab.h anorm_dots.h anorms.h asm_draw.h asm_ia32.h \
|
||||||
dga_check.h d_iface.h d_ifacea.h d_local.h dosisms.h draw.h \
|
dga_check.h d_iface.h d_ifacea.h d_local.h dosisms.h draw.h \
|
||||||
gcc_attr.h gib_error.h gib.h gib_instructions.h \
|
gcc_attr.h gib_error.h gib.h gib_instructions.h \
|
||||||
gib_interpret.h gib_modules.h gib_parse.h gib_stack.h gib_vars.h glquake.h \
|
gib_interpret.h gib_modules.h gib_parse.h gib_stack.h gib_vars.h glquake.h \
|
||||||
gl_warp_sin.h host.h info.h input.h keys.h link.h mathlib.h mdfour.h menu.h \
|
gl_warp_sin.h host.h info.h input.h keys.h link.h mathlib.h mdfour.h \
|
||||||
modelgen.h model.h mpdosock.h msg.h net_bw.h net_dgrm.h net.h \
|
modelgen.h model.h mpdosock.h msg.h net_bw.h net_dgrm.h net.h \
|
||||||
net_ipx.h net_loop.h net_mp.h net_ser.h net_udp.h net_vcr.h \
|
net_ipx.h net_loop.h net_mp.h net_ser.h net_udp.h net_vcr.h \
|
||||||
net_wins.h net_wipx.h pr_comp.h progdefs.h progdefs.q1 \
|
net_wins.h net_wipx.h pr_comp.h progdefs.h progdefs.q1 \
|
||||||
|
|
|
@ -1,47 +0,0 @@
|
||||||
/*
|
|
||||||
menu.h
|
|
||||||
|
|
||||||
@description@
|
|
||||||
|
|
||||||
Copyright (C) 1996-1997 Id Software, Inc.
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License
|
|
||||||
as published by the Free Software Foundation; either version 2
|
|
||||||
of the License, or (at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
|
|
||||||
See the GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program; if not, write to:
|
|
||||||
|
|
||||||
Free Software Foundation, Inc.
|
|
||||||
59 Temple Place - Suite 330
|
|
||||||
Boston, MA 02111-1307, USA
|
|
||||||
|
|
||||||
$Id$
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// the net drivers should just set the apropriate bits in m_activenet,
|
|
||||||
// instead of having the menu code look through their internal tables
|
|
||||||
//
|
|
||||||
#define MNET_IPX 1
|
|
||||||
#define MNET_TCP 2
|
|
||||||
|
|
||||||
extern int m_activenet;
|
|
||||||
|
|
||||||
//
|
|
||||||
// menus
|
|
||||||
//
|
|
||||||
void M_Init (void);
|
|
||||||
void M_Keydown (int key);
|
|
||||||
void M_Draw (void);
|
|
||||||
void M_ToggleMenu_f (void);
|
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ client_LIBS= -L. -L../../libs -lqfsys -lqfsnd -lqfcd -lqfjs -lqfnet -lqfgamecode
|
||||||
client_LIB_DEPS= libqfsys.a libqfsnd.a libqfcd.a libqfjs.a libqfnet.a ../../libs/libqfgamecode.a ../../libs/libqfutil.a
|
client_LIB_DEPS= libqfsys.a libqfsnd.a libqfcd.a libqfjs.a libqfnet.a ../../libs/libqfgamecode.a ../../libs/libqfutil.a
|
||||||
|
|
||||||
client_SOURCES= cl_cam.c cl_cmd.c cl_demo.c cl_input.c cl_main.c cl_parse.c \
|
client_SOURCES= cl_cam.c cl_cmd.c cl_demo.c cl_input.c cl_main.c cl_parse.c \
|
||||||
cl_tent.c console.c keys.c menu.c sbar.c r_part.c r_view.c \
|
cl_tent.c console.c keys.c sbar.c r_part.c r_view.c \
|
||||||
nonintel.c gib.c gib_instructions.c gib_vars.c \
|
nonintel.c gib.c gib_instructions.c gib_vars.c \
|
||||||
gib_interpret.c gib_modules.c gib_parse.c gib_stack.c vid.c
|
gib_interpret.c gib_modules.c gib_parse.c gib_stack.c vid.c
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,6 @@
|
||||||
#include "net.h" // needed by: client.h
|
#include "net.h" // needed by: client.h
|
||||||
#include "protocol.h" // needed by: client.h
|
#include "protocol.h" // needed by: client.h
|
||||||
#include "keys.h"
|
#include "keys.h"
|
||||||
#include "menu.h"
|
|
||||||
#include "cmd.h"
|
#include "cmd.h"
|
||||||
#include "sbar.h"
|
#include "sbar.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
|
@ -1032,7 +1031,8 @@ SCR_UpdateScreen (void)
|
||||||
SCR_CheckDrawCenterString ();
|
SCR_CheckDrawCenterString ();
|
||||||
Sbar_Draw ();
|
Sbar_Draw ();
|
||||||
SCR_DrawConsole ();
|
SCR_DrawConsole ();
|
||||||
M_Draw ();
|
// FIXME: MENUCODE
|
||||||
|
// M_Draw ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
#include "cdaudio.h"
|
#include "cdaudio.h"
|
||||||
#include "va.h"
|
#include "va.h"
|
||||||
#include "sbar.h"
|
#include "sbar.h"
|
||||||
#include "menu.h"
|
|
||||||
#include "msg.h"
|
#include "msg.h"
|
||||||
#include "vid.h"
|
#include "vid.h"
|
||||||
#include "draw.h"
|
#include "draw.h"
|
||||||
|
@ -945,7 +944,8 @@ Host_Init (quakeparms_t *parms)
|
||||||
Con_Init_Cvars ();
|
Con_Init_Cvars ();
|
||||||
Key_Init ();
|
Key_Init ();
|
||||||
Con_Init ();
|
Con_Init ();
|
||||||
M_Init ();
|
// FIXME: MENUCODE
|
||||||
|
// M_Init ();
|
||||||
PR_Init_Cvars ();
|
PR_Init_Cvars ();
|
||||||
PR_Init ();
|
PR_Init ();
|
||||||
SV_Progs_Init_Cvars ();
|
SV_Progs_Init_Cvars ();
|
||||||
|
|
|
@ -54,15 +54,13 @@ Host_Quit_f
|
||||||
==================
|
==================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern void M_Menu_Quit_f (void);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Host_Quit_f (void)
|
Host_Quit_f (void)
|
||||||
{
|
{
|
||||||
if (key_dest != key_console && cls.state != ca_dedicated) {
|
// if (key_dest != key_console && cls.state != ca_dedicated) {
|
||||||
M_Menu_Quit_f ();
|
// M_Menu_Quit_f ();
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
CL_Disconnect ();
|
CL_Disconnect ();
|
||||||
Host_ShutdownServer (false);
|
Host_ShutdownServer (false);
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,6 @@
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "joystick.h"
|
#include "joystick.h"
|
||||||
#include "keys.h"
|
#include "keys.h"
|
||||||
#include "menu.h"
|
|
||||||
#include "sys.h"
|
#include "sys.h"
|
||||||
#include "qargs.h"
|
#include "qargs.h"
|
||||||
#include "qendian.h"
|
#include "qendian.h"
|
||||||
|
|
|
@ -47,7 +47,6 @@
|
||||||
#include "console.h"
|
#include "console.h"
|
||||||
#include "cvar.h"
|
#include "cvar.h"
|
||||||
#include "keys.h"
|
#include "keys.h"
|
||||||
#include "menu.h"
|
|
||||||
#include "screen.h"
|
#include "screen.h"
|
||||||
#include "sys.h"
|
#include "sys.h"
|
||||||
|
|
||||||
|
@ -810,11 +809,12 @@ Key_Event (int key, int alt_key, qboolean down)
|
||||||
Key_Message (key);
|
Key_Message (key);
|
||||||
break;
|
break;
|
||||||
case key_menu:
|
case key_menu:
|
||||||
M_Keydown (key);
|
// M_Keydown (key);
|
||||||
break;
|
break;
|
||||||
case key_game:
|
case key_game:
|
||||||
case key_console:
|
case key_console:
|
||||||
M_ToggleMenu_f ();
|
// M_ToggleMenu_f ();
|
||||||
|
Con_ToggleConsole_f ();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Sys_Error ("Bad key_dest");
|
Sys_Error ("Bad key_dest");
|
||||||
|
@ -849,7 +849,8 @@ Key_Event (int key, int alt_key, qboolean down)
|
||||||
if (cls.demoplayback && down && consolekeys[key] && key_dest == key_game
|
if (cls.demoplayback && down && consolekeys[key] && key_dest == key_game
|
||||||
&& key != K_CTRL && key != K_DEL && key != K_HOME && key != K_END
|
&& key != K_CTRL && key != K_DEL && key != K_HOME && key != K_END
|
||||||
&& key != K_TAB) {
|
&& key != K_TAB) {
|
||||||
M_ToggleMenu_f ();
|
// M_ToggleMenu_f ();
|
||||||
|
Con_ToggleConsole_f ();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
@ -886,7 +887,7 @@ Key_Event (int key, int alt_key, qboolean down)
|
||||||
Key_Message (key);
|
Key_Message (key);
|
||||||
break;
|
break;
|
||||||
case key_menu:
|
case key_menu:
|
||||||
M_Keydown (key);
|
// M_Keydown (key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case key_game:
|
case key_game:
|
||||||
|
|
|
@ -107,10 +107,11 @@ struct {
|
||||||
byte data[MAX_DATAGRAM];
|
byte data[MAX_DATAGRAM];
|
||||||
} packetBuffer;
|
} packetBuffer;
|
||||||
|
|
||||||
extern int m_return_state;
|
// FIXME: MENUCODE
|
||||||
extern int m_state;
|
//extern int m_return_state;
|
||||||
extern qboolean m_return_onerror;
|
//extern int m_state;
|
||||||
extern char m_return_reason[32];
|
//extern qboolean m_return_onerror;
|
||||||
|
//extern char m_return_reason[32];
|
||||||
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -1360,14 +1361,14 @@ _Datagram_Connect (char *host)
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
reason = "No Response";
|
reason = "No Response";
|
||||||
Con_Printf ("%s\n", reason);
|
Con_Printf ("%s\n", reason);
|
||||||
strcpy (m_return_reason, reason);
|
// strcpy (m_return_reason, reason);
|
||||||
goto ErrorReturn;
|
goto ErrorReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
reason = "Network Error";
|
reason = "Network Error";
|
||||||
Con_Printf ("%s\n", reason);
|
Con_Printf ("%s\n", reason);
|
||||||
strcpy (m_return_reason, reason);
|
// strcpy (m_return_reason, reason);
|
||||||
goto ErrorReturn;
|
goto ErrorReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1375,7 +1376,7 @@ _Datagram_Connect (char *host)
|
||||||
if (ret == CCREP_REJECT) {
|
if (ret == CCREP_REJECT) {
|
||||||
reason = MSG_ReadString (net_message);
|
reason = MSG_ReadString (net_message);
|
||||||
Con_Printf (reason);
|
Con_Printf (reason);
|
||||||
strncpy (m_return_reason, reason, 31);
|
// strncpy (m_return_reason, reason, 31);
|
||||||
goto ErrorReturn;
|
goto ErrorReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1386,7 +1387,7 @@ _Datagram_Connect (char *host)
|
||||||
} else {
|
} else {
|
||||||
reason = "Bad Response";
|
reason = "Bad Response";
|
||||||
Con_Printf ("%s\n", reason);
|
Con_Printf ("%s\n", reason);
|
||||||
strcpy (m_return_reason, reason);
|
// strcpy (m_return_reason, reason);
|
||||||
goto ErrorReturn;
|
goto ErrorReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1399,22 +1400,25 @@ _Datagram_Connect (char *host)
|
||||||
if (dfunc.Connect (newsock, &sock->addr) == -1) {
|
if (dfunc.Connect (newsock, &sock->addr) == -1) {
|
||||||
reason = "Connect to Game failed";
|
reason = "Connect to Game failed";
|
||||||
Con_Printf ("%s\n", reason);
|
Con_Printf ("%s\n", reason);
|
||||||
strcpy (m_return_reason, reason);
|
// strcpy (m_return_reason, reason);
|
||||||
goto ErrorReturn;
|
goto ErrorReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_return_onerror = false;
|
// FIXME: MENUCODE
|
||||||
|
// m_return_onerror = false;
|
||||||
return sock;
|
return sock;
|
||||||
|
|
||||||
ErrorReturn:
|
ErrorReturn:
|
||||||
|
// FIXME: MENUCODE - do something with reason
|
||||||
NET_FreeQSocket (sock);
|
NET_FreeQSocket (sock);
|
||||||
ErrorReturn2:
|
ErrorReturn2:
|
||||||
dfunc.CloseSocket (newsock);
|
dfunc.CloseSocket (newsock);
|
||||||
if (m_return_onerror) {
|
// FIXME: MENUCODE
|
||||||
key_dest = key_menu;
|
// if (m_return_onerror) {
|
||||||
m_state = m_return_state;
|
// key_dest = key_menu;
|
||||||
m_return_onerror = false;
|
// m_state = m_return_state;
|
||||||
}
|
// m_return_onerror = false;
|
||||||
|
// }
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,6 @@ qboolean sbar_centered;
|
||||||
|
|
||||||
void Sbar_MiniDeathmatchOverlay (void);
|
void Sbar_MiniDeathmatchOverlay (void);
|
||||||
void Sbar_DeathmatchOverlay (void);
|
void Sbar_DeathmatchOverlay (void);
|
||||||
void M_DrawPic (int, int, qpic_t *);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
|
@ -996,7 +995,7 @@ Sbar_DeathmatchOverlay (void)
|
||||||
scr_fullupdate = 0;
|
scr_fullupdate = 0;
|
||||||
|
|
||||||
pic = Draw_CachePic ("gfx/ranking.lmp");
|
pic = Draw_CachePic ("gfx/ranking.lmp");
|
||||||
M_DrawPic ((320 - pic->width) / 2, 8, pic);
|
Draw_Pic (160 - pic->width / 2, 0, pic);
|
||||||
|
|
||||||
// scores
|
// scores
|
||||||
Sbar_SortFrags ();
|
Sbar_SortFrags ();
|
||||||
|
@ -1004,7 +1003,7 @@ Sbar_DeathmatchOverlay (void)
|
||||||
// draw the text
|
// draw the text
|
||||||
l = scoreboardlines;
|
l = scoreboardlines;
|
||||||
|
|
||||||
x = 80 + ((vid.width - 320) >> 1);
|
x = 80;
|
||||||
y = 40;
|
y = 40;
|
||||||
for (i = 0; i < l; i++) {
|
for (i = 0; i < l; i++) {
|
||||||
k = fragsort[i];
|
k = fragsort[i];
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
#include "sbar.h"
|
#include "sbar.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "menu.h"
|
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include "sys.h"
|
#include "sys.h"
|
||||||
#include "console.h"
|
#include "console.h"
|
||||||
|
@ -1010,7 +1009,8 @@ SCR_UpdateScreen (void)
|
||||||
SCR_CheckDrawCenterString ();
|
SCR_CheckDrawCenterString ();
|
||||||
Sbar_Draw ();
|
Sbar_Draw ();
|
||||||
SCR_DrawConsole ();
|
SCR_DrawConsole ();
|
||||||
M_Draw ();
|
// FIXME: MENUCODE
|
||||||
|
// M_Draw ();
|
||||||
}
|
}
|
||||||
|
|
||||||
D_DisableBackBufferAccess (); // for adapters that can't stay
|
D_DisableBackBufferAccess (); // for adapters that can't stay
|
||||||
|
|
|
@ -57,7 +57,6 @@
|
||||||
#include "d_local.h"
|
#include "d_local.h"
|
||||||
#include "keys.h"
|
#include "keys.h"
|
||||||
#include "cvar.h"
|
#include "cvar.h"
|
||||||
#include "menu.h"
|
|
||||||
#include "sys.h"
|
#include "sys.h"
|
||||||
#include "cmd.h"
|
#include "cmd.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
|
|
Loading…
Reference in a new issue