mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 05:41:52 +00:00
r_floorcolour/r_wallcolour uses 0-255 range
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2275 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
15fac4ad44
commit
75af125d79
4 changed files with 6 additions and 6 deletions
|
@ -220,8 +220,8 @@ extern cvar_t r_novis;
|
|||
extern cvar_t r_netgraph;
|
||||
|
||||
cvar_t r_drawflat = SCVARF("r_drawflat","0", CVAR_SEMICHEAT|CVAR_RENDERERCALLBACK);
|
||||
cvar_t r_wallcolour = SCVARF("r_wallcolour","1 1 1", CVAR_RENDERERCALLBACK);
|
||||
cvar_t r_floorcolour = SCVARF("r_floorcolour","1 1 1", CVAR_RENDERERCALLBACK);
|
||||
cvar_t r_wallcolour = SCVARF("r_wallcolour","255 255 255", CVAR_RENDERERCALLBACK);
|
||||
cvar_t r_floorcolour = SCVARF("r_floorcolour","255 255 255", CVAR_RENDERERCALLBACK);
|
||||
cvar_t r_walltexture = SCVARF("r_walltexture","", CVAR_RENDERERCALLBACK);
|
||||
cvar_t r_floortexture = SCVARF("r_floortexture","", CVAR_RENDERERCALLBACK);
|
||||
|
||||
|
|
|
@ -3336,7 +3336,7 @@ void GLMod_LoadDoomSprite (model_t *mod)
|
|||
msprite_t *psprite;
|
||||
|
||||
|
||||
COM_StripExtension(mod->name, basename);
|
||||
COM_StripExtension(mod->name, basename, sizeof(basename));
|
||||
baselen = strlen(basename);
|
||||
strcat(basename, "*");
|
||||
*(int *)files=4;
|
||||
|
|
|
@ -1170,12 +1170,12 @@ static qboolean simpletextures = false;
|
|||
//single textured.
|
||||
void GLR_Wallcolour_Callback(struct cvar_s *var, char *oldvalue)
|
||||
{
|
||||
SCR_StringToRGB(var->string, wallcolour, 1);
|
||||
SCR_StringToRGB(var->string, wallcolour, 255);
|
||||
}
|
||||
|
||||
void GLR_Floorcolour_Callback(struct cvar_s *var, char *oldvalue)
|
||||
{
|
||||
SCR_StringToRGB(var->string, floorcolour, 1);
|
||||
SCR_StringToRGB(var->string, floorcolour, 255);
|
||||
}
|
||||
|
||||
void GLR_Walltexture_Callback(struct cvar_s *var, char *oldvalue)
|
||||
|
|
|
@ -1432,7 +1432,7 @@ qboolean Mod_LoadDoomLevel(model_t *mod)
|
|||
|
||||
int *gl_nodes;
|
||||
|
||||
COM_StripExtension(mod->name, name);
|
||||
COM_StripExtension(mod->name, name, sizeof(name));
|
||||
|
||||
if (!COM_LoadTempFile(va("%s", mod->name)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue