mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Disable the corona-related consvars unless ALAM_LIGHTING macro is enabled
This commit is contained in:
		
							parent
							
								
									5a6f538618
								
							
						
					
					
						commit
						d53801c85c
					
				
					 3 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -74,10 +74,12 @@ FUNCMATH UINT8 LightLevelToLum(INT32 l);
 | 
			
		|||
 | 
			
		||||
extern CV_PossibleValue_t granisotropicmode_cons_t[];
 | 
			
		||||
 | 
			
		||||
#ifdef ALAM_LIGHTING
 | 
			
		||||
extern consvar_t cv_grdynamiclighting;
 | 
			
		||||
extern consvar_t cv_grstaticlighting;
 | 
			
		||||
extern consvar_t cv_grcoronas;
 | 
			
		||||
extern consvar_t cv_grcoronasize;
 | 
			
		||||
#endif
 | 
			
		||||
extern consvar_t cv_grfov;
 | 
			
		||||
extern consvar_t cv_grmd2;
 | 
			
		||||
extern consvar_t cv_grfog;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1461,10 +1461,12 @@ void R_RegisterEngineStuff(void)
 | 
			
		|||
	CV_RegisterVar(&cv_voodoocompatibility);
 | 
			
		||||
	CV_RegisterVar(&cv_grfogcolor);
 | 
			
		||||
	CV_RegisterVar(&cv_grsoftwarefog);
 | 
			
		||||
#ifdef ALAM_LIGHTING
 | 
			
		||||
	CV_RegisterVar(&cv_grstaticlighting);
 | 
			
		||||
	CV_RegisterVar(&cv_grdynamiclighting);
 | 
			
		||||
	CV_RegisterVar(&cv_grcoronas);
 | 
			
		||||
	CV_RegisterVar(&cv_grcoronasize);
 | 
			
		||||
#endif
 | 
			
		||||
	CV_RegisterVar(&cv_grmd2);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -71,10 +71,12 @@ consvar_t cv_grgammagreen = {"gr_gammagreen", "127", CV_SAVE|CV_CALL, grgamma_co
 | 
			
		|||
                             CV_Gammaxxx_ONChange, 0, NULL, NULL, 0, 0, NULL};
 | 
			
		||||
consvar_t cv_grgammablue = {"gr_gammablue", "127", CV_SAVE|CV_CALL, grgamma_cons_t,
 | 
			
		||||
                            CV_Gammaxxx_ONChange, 0, NULL, NULL, 0, 0, NULL};
 | 
			
		||||
#ifdef ALAM_LIGHTING
 | 
			
		||||
consvar_t cv_grdynamiclighting = {"gr_dynamiclighting", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
 | 
			
		||||
consvar_t cv_grstaticlighting  = {"gr_staticlighting", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
 | 
			
		||||
consvar_t cv_grcoronas = {"gr_coronas", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
 | 
			
		||||
consvar_t cv_grcoronasize = {"gr_coronasize", "1", CV_SAVE| CV_FLOAT, 0, NULL, 0, NULL, NULL, 0, 0, NULL};
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
static CV_PossibleValue_t CV_MD2[] = {{0, "Off"}, {1, "On"}, {2, "Old"}, {0, NULL}};
 | 
			
		||||
// console variables in development
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue