mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
- removed some dead code.
This commit is contained in:
parent
71c2a8f33a
commit
36cf2583e4
2 changed files with 0 additions and 141 deletions
|
@ -332,36 +332,7 @@ static int osdcmd_restartsound(osdcmdptr_t UNUSED(parm))
|
|||
void onvideomodechange(int32_t newmode)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(newmode);
|
||||
#if 0
|
||||
uint8_t palid;
|
||||
|
||||
// XXX?
|
||||
if (!newmode || g_player[screenpeek].ps->palette < BASEPALCOUNT)
|
||||
palid = g_player[screenpeek].ps->palette;
|
||||
else
|
||||
palid = BASEPAL;
|
||||
|
||||
#ifdef POLYMER
|
||||
if (videoGetRenderMode() == REND_POLYMER)
|
||||
{
|
||||
int32_t i = 0;
|
||||
|
||||
while (i < MAXSPRITES)
|
||||
{
|
||||
if (actor[i].lightptr)
|
||||
{
|
||||
polymer_deletelight(actor[i].lightId);
|
||||
actor[i].lightptr = NULL;
|
||||
actor[i].lightId = -1;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
videoSetPalette(0, palid, 0);
|
||||
g_restorePalette = -1;
|
||||
#endif
|
||||
if (newmode)
|
||||
scrResetPalette();
|
||||
UpdateDacs(gLastPal, false);
|
||||
|
@ -369,40 +340,6 @@ void onvideomodechange(int32_t newmode)
|
|||
|
||||
|
||||
|
||||
#if 0
|
||||
static int osdcmd_savestate(osdcmdptr_t UNUSED(parm))
|
||||
{
|
||||
UNREFERENCED_PARAMETER(parm);
|
||||
G_SaveMapState();
|
||||
return OSDCMD_OK;
|
||||
}
|
||||
|
||||
static int osdcmd_restorestate(osdcmdptr_t UNUSED(parm))
|
||||
{
|
||||
UNREFERENCED_PARAMETER(parm);
|
||||
G_RestoreMapState();
|
||||
return OSDCMD_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
#ifdef DEBUGGINGAIDS
|
||||
static int osdcmd_inittimer(osdcmdptr_t parm)
|
||||
{
|
||||
if (parm->numparms != 1)
|
||||
{
|
||||
OSD_Printf("%dHz timer\n",g_timerTicsPerSecond);
|
||||
return OSDCMD_SHOWHELP;
|
||||
}
|
||||
|
||||
G_InitTimer(Batol(parm->parms[0]));
|
||||
|
||||
OSD_Printf("%s\n",parm->raw);
|
||||
return OSDCMD_OK;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
int32_t registerosdcommands(void)
|
||||
{
|
||||
OSD_RegisterFunction("changelevel","changelevel <volume> <level>: warps to the given level", osdcmd_changelevel);
|
||||
|
|
|
@ -79,42 +79,6 @@ static int osdcmd_changelevel(osdcmdptr_t parm)
|
|||
|
||||
if (numplayers > 1)
|
||||
{
|
||||
/*
|
||||
if (g_netServer)
|
||||
Net_NewGame(volume,level);
|
||||
else if (voting == -1)
|
||||
{
|
||||
ud.m_volume_number = volume;
|
||||
m_level_number = level;
|
||||
|
||||
if (g_player[myconnectindex].ps->i)
|
||||
{
|
||||
int32_t i;
|
||||
|
||||
for (i=0; i<MAXPLAYERS; i++)
|
||||
{
|
||||
g_player[i].vote = 0;
|
||||
g_player[i].gotvote = 0;
|
||||
}
|
||||
|
||||
g_player[myconnectindex].vote = g_player[myconnectindex].gotvote = 1;
|
||||
|
||||
voting = myconnectindex;
|
||||
|
||||
tempbuf[0] = PACKET_MAP_VOTE_INITIATE;
|
||||
tempbuf[1] = myconnectindex;
|
||||
tempbuf[2] = ud.m_volume_number;
|
||||
tempbuf[3] = m_level_number;
|
||||
|
||||
enet_peer_send(g_netClientPeer, CHAN_GAMESTATE, enet_packet_create(tempbuf, 4, ENET_PACKET_FLAG_RELIABLE));
|
||||
}
|
||||
if ((g_gametypeFlags[m_coop] & GAMETYPE_PLAYERSFRIENDLY) && !(g_gametypeFlags[m_coop] & GAMETYPE_TDM))
|
||||
m_noexits = 0;
|
||||
|
||||
M_OpenMenu(myconnectindex);
|
||||
Menu_Change(MENU_NETWAITVOTES);
|
||||
}
|
||||
*/
|
||||
return OSDCMD_OK;
|
||||
}
|
||||
if (g_player[myconnectindex].ps->gm & MODE_GAME)
|
||||
|
@ -172,48 +136,6 @@ static int osdcmd_map(osdcmdptr_t parm)
|
|||
|
||||
if (numplayers > 1)
|
||||
{
|
||||
/*
|
||||
if (g_netServer)
|
||||
{
|
||||
Net_SendUserMapName();
|
||||
ud.m_volume_number = 0;
|
||||
m_level_number = 7;
|
||||
Net_NewGame(ud.m_volume_number, m_level_number);
|
||||
}
|
||||
else if (voting == -1)
|
||||
{
|
||||
Net_SendUserMapName();
|
||||
|
||||
ud.m_volume_number = 0;
|
||||
m_level_number = 7;
|
||||
|
||||
if (g_player[myconnectindex].ps->i)
|
||||
{
|
||||
int32_t i;
|
||||
|
||||
for (i=0; i<MAXPLAYERS; i++)
|
||||
{
|
||||
g_player[i].vote = 0;
|
||||
g_player[i].gotvote = 0;
|
||||
}
|
||||
|
||||
g_player[myconnectindex].vote = g_player[myconnectindex].gotvote = 1;
|
||||
voting = myconnectindex;
|
||||
|
||||
tempbuf[0] = PACKET_MAP_VOTE_INITIATE;
|
||||
tempbuf[1] = myconnectindex;
|
||||
tempbuf[2] = ud.m_volume_number;
|
||||
tempbuf[3] = m_level_number;
|
||||
|
||||
enet_peer_send(g_netClientPeer, CHAN_GAMESTATE, enet_packet_create(tempbuf, 4, ENET_PACKET_FLAG_RELIABLE));
|
||||
}
|
||||
if ((g_gametypeFlags[m_coop] & GAMETYPE_PLAYERSFRIENDLY) && !(g_gametypeFlags[m_coop] & GAMETYPE_TDM))
|
||||
m_noexits = 0;
|
||||
|
||||
M_OpenMenu(myconnectindex);
|
||||
Menu_Change(MENU_NETWAITVOTES);
|
||||
}
|
||||
*/
|
||||
return OSDCMD_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue