mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 15:12:19 +00:00
cl_indepphysics -> cl_threadedphysics, properly register r_rockettrail/r_grenadetrail, fix menu spacing regression
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3821 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
74e9d14432
commit
027c09bd6a
3 changed files with 16 additions and 13 deletions
|
@ -85,7 +85,7 @@ cvar_t cl_demospeed = CVARAF("cl_demospeed", "1", "demo_setspeed", 0);
|
||||||
cvar_t cl_loopbackprotocol = CVAR("cl_loopbackprotocol", "qw");
|
cvar_t cl_loopbackprotocol = CVAR("cl_loopbackprotocol", "qw");
|
||||||
|
|
||||||
|
|
||||||
cvar_t cl_indepphysics = CVAR("cl_indepphysics", "0");
|
cvar_t cl_threadedphysics = CVAR("cl_threadedphysics", "0");
|
||||||
|
|
||||||
cvar_t localid = SCVAR("localid", "");
|
cvar_t localid = SCVAR("localid", "");
|
||||||
|
|
||||||
|
@ -3087,7 +3087,7 @@ void CL_Init (void)
|
||||||
Cvar_Register (&cl_loopbackprotocol, cl_controlgroup);
|
Cvar_Register (&cl_loopbackprotocol, cl_controlgroup);
|
||||||
#endif
|
#endif
|
||||||
Cvar_Register (&cl_countpendingpl, cl_controlgroup);
|
Cvar_Register (&cl_countpendingpl, cl_controlgroup);
|
||||||
Cvar_Register (&cl_indepphysics, cl_controlgroup);
|
Cvar_Register (&cl_threadedphysics, cl_controlgroup);
|
||||||
Cvar_Register (&cl_antibunch, "evil hacks");
|
Cvar_Register (&cl_antibunch, "evil hacks");
|
||||||
Cvar_Register (&hud_tracking_show, "statusbar");
|
Cvar_Register (&hud_tracking_show, "statusbar");
|
||||||
Cvar_Register (&cl_download_mapsrc, cl_controlgroup);
|
Cvar_Register (&cl_download_mapsrc, cl_controlgroup);
|
||||||
|
@ -3413,7 +3413,7 @@ float Host_Frame (double time)
|
||||||
*/
|
*/
|
||||||
Mod_Think(); //think even on idle (which means small walls and a fast cpu can get more surfaces done.
|
Mod_Think(); //think even on idle (which means small walls and a fast cpu can get more surfaces done.
|
||||||
|
|
||||||
if ((cl_netfps.value>0 || cls.demoplayback || cl_indepphysics.ival))
|
if ((cl_netfps.value>0 || cls.demoplayback || cl_threadedphysics.ival))
|
||||||
{ //limit the fps freely, and expect the netfps to cope.
|
{ //limit the fps freely, and expect the netfps to cope.
|
||||||
maxfpsignoreserver = true;
|
maxfpsignoreserver = true;
|
||||||
maxfps = cl_maxfps.ival;
|
maxfps = cl_maxfps.ival;
|
||||||
|
@ -3480,7 +3480,7 @@ float Host_Frame (double time)
|
||||||
|
|
||||||
RSpeedRemark();
|
RSpeedRemark();
|
||||||
|
|
||||||
CL_UseIndepPhysics(!!cl_indepphysics.ival);
|
CL_UseIndepPhysics(!!cl_threadedphysics.ival);
|
||||||
|
|
||||||
CL_AllowIndependantSendCmd(false);
|
CL_AllowIndependantSendCmd(false);
|
||||||
|
|
||||||
|
|
|
@ -851,8 +851,10 @@ menuedit_t *MC_AddEditCvar_Full(menu_t *menu, int x, int y, char *text, char *na
|
||||||
n->caption = (char *)(n+1);
|
n->caption = (char *)(n+1);
|
||||||
strcpy((char *)(n+1), text);
|
strcpy((char *)(n+1), text);
|
||||||
n->cvar = cvar;
|
n->cvar = cvar;
|
||||||
|
#ifdef _DEBUG
|
||||||
if (!(cvar->flags & CVAR_ARCHIVE))
|
if (!(cvar->flags & CVAR_ARCHIVE))
|
||||||
Con_Printf("Warning: %s is not set for archiving\n", cvar->name);
|
Con_Printf("Warning: %s is not set for archiving\n", cvar->name);
|
||||||
|
#endif
|
||||||
Q_strncpyz(n->text, cvar->string, sizeof(n->text));
|
Q_strncpyz(n->text, cvar->string, sizeof(n->text));
|
||||||
|
|
||||||
n->common.next = menu->options;
|
n->common.next = menu->options;
|
||||||
|
@ -915,13 +917,13 @@ menucheck_t *MC_AddCheckBox(menu_t *menu, int x, int y, const char *text, cvar_t
|
||||||
n->var = var;
|
n->var = var;
|
||||||
n->bits = bits;
|
n->bits = bits;
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
if (var)
|
if (var)
|
||||||
if (!(var->flags & CVAR_ARCHIVE))
|
if (!(var->flags & CVAR_ARCHIVE))
|
||||||
Con_Printf("Warning: %s is not set for archiving\n", var->name);
|
Con_Printf("Warning: %s is not set for archiving\n", var->name);
|
||||||
else if (var->flags & CVAR_RENDERERLATCH)
|
else if (var->flags & CVAR_RENDERERLATCH)
|
||||||
Con_Printf("Warning: %s requires a vid_restart\n", var->name);
|
Con_Printf("Warning: %s requires a vid_restart\n", var->name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
n->common.next = menu->options;
|
n->common.next = menu->options;
|
||||||
menu->options = (menuoption_t *)n;
|
menu->options = (menuoption_t *)n;
|
||||||
|
@ -2055,10 +2057,10 @@ int MC_AddBulk(struct menu_s *menu, menubulk_t *bulk, int xstart, int xtextend,
|
||||||
|
|
||||||
while (bulk)
|
while (bulk)
|
||||||
{
|
{
|
||||||
qboolean selectable = true;
|
|
||||||
menuoption_t *control;
|
menuoption_t *control;
|
||||||
int x = xtextend;
|
int x = xtextend;
|
||||||
int xleft;
|
int xleft;
|
||||||
|
int spacing = 8;
|
||||||
|
|
||||||
if (bulk->text)
|
if (bulk->text)
|
||||||
x -= strlen(bulk->text) * 8;
|
x -= strlen(bulk->text) * 8;
|
||||||
|
@ -2074,14 +2076,12 @@ int MC_AddBulk(struct menu_s *menu, menubulk_t *bulk, int xstart, int xtextend,
|
||||||
continue;
|
continue;
|
||||||
case 0: // white text
|
case 0: // white text
|
||||||
control = (union menuoption_s *)MC_AddWhiteText(menu, x, y, bulk->text, bulk->rightalign);
|
control = (union menuoption_s *)MC_AddWhiteText(menu, x, y, bulk->text, bulk->rightalign);
|
||||||
selectable = false;
|
|
||||||
break;
|
break;
|
||||||
case 1: // red text
|
case 1: // red text
|
||||||
control = (union menuoption_s *)MC_AddRedText(menu, x, y, bulk->text, bulk->rightalign);
|
control = (union menuoption_s *)MC_AddRedText(menu, x, y, bulk->text, bulk->rightalign);
|
||||||
selectable = false;
|
|
||||||
break;
|
break;
|
||||||
case 2: // spacing
|
case 2: // spacing
|
||||||
y += bulk->spacing;
|
spacing = bulk->spacing;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -2123,7 +2123,7 @@ int MC_AddBulk(struct menu_s *menu, menubulk_t *bulk, int xstart, int xtextend,
|
||||||
case 0:
|
case 0:
|
||||||
y += 4;
|
y += 4;
|
||||||
control = (union menuoption_s *)MC_AddEditCvar(menu, x, y, bulk->text, bulk->cvarname);
|
control = (union menuoption_s *)MC_AddEditCvar(menu, x, y, bulk->text, bulk->cvarname);
|
||||||
y += 4;
|
spacing += 4;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
control = (union menuoption_s *)MC_AddEditCvarSlim(menu, x, y, bulk->text, bulk->cvarname);
|
control = (union menuoption_s *)MC_AddEditCvarSlim(menu, x, y, bulk->text, bulk->cvarname);
|
||||||
|
@ -2138,13 +2138,13 @@ int MC_AddBulk(struct menu_s *menu, menubulk_t *bulk, int xstart, int xtextend,
|
||||||
|
|
||||||
if (bulk->ret)
|
if (bulk->ret)
|
||||||
*bulk->ret = control;
|
*bulk->ret = control;
|
||||||
if (selectable && !selected)
|
if (MI_Selectable(control) && !selected)
|
||||||
selected = control;
|
selected = control;
|
||||||
if (bulk->tooltip)
|
if (bulk->tooltip)
|
||||||
control->common.tooltip = bulk->tooltip;
|
control->common.tooltip = bulk->tooltip;
|
||||||
if (xleft > 0)
|
if (xleft > 0)
|
||||||
control->common.extracollide = xleft;
|
control->common.extracollide = xleft;
|
||||||
y += 8;
|
y += spacing;
|
||||||
|
|
||||||
bulk++;
|
bulk++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,6 +160,9 @@ void P_InitParticleSystem(void)
|
||||||
Cvar_Register(&r_part_contentswitch, particlecvargroupname);
|
Cvar_Register(&r_part_contentswitch, particlecvargroupname);
|
||||||
|
|
||||||
Cvar_Register (&gl_part_flame, particlecvargroupname);
|
Cvar_Register (&gl_part_flame, particlecvargroupname);
|
||||||
|
|
||||||
|
Cvar_Register (&r_rockettrail, particlecvargroupname);
|
||||||
|
Cvar_Register (&r_grenadetrail, particlecvargroupname);
|
||||||
}
|
}
|
||||||
|
|
||||||
void P_Shutdown(void)
|
void P_Shutdown(void)
|
||||||
|
|
Loading…
Reference in a new issue