Skip to content

Commit a08cee8

Browse files
committed
.
1 parent 681cccc commit a08cee8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

sp/src/utils/vrad/leaf_ambient_lighting.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,11 @@ struct ambientsample_t
313313
// be discarded. This has the effect of converging on the best samples when enough are added.
314314
void AddSampleToList( CUtlVector<ambientsample_t> &list, const Vector &samplePosition, Vector *pCube )
315315
{
316-
const int MAX_SAMPLES = g_iAmbientCubesPerLeaf;
316+
#ifdef MAPBASE
317+
const int MAX_SAMPLES = g_iAmbientCubesPerLeaf;
318+
#else
319+
const int MAX_SAMPLES = 16;
320+
#endif // MAPBASE
317321

318322
int index = list.AddToTail();
319323
list[index].pos = samplePosition;

sp/src/utils/vrad/vrad.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2705,7 +2705,7 @@ int ParseCommandLine( int argc, char **argv, bool *onlydetail )
27052705
return -1;
27062706
}
27072707
}
2708-
#endif
2708+
#endif // MAPBASE
27092709
#if ALLOWDEBUGOPTIONS
27102710
else if (!Q_stricmp(argv[i],"-scale"))
27112711
{

0 commit comments

Comments
 (0)