std::list<light_t> lights

This commit is contained in:
Garux
2021-08-03 04:12:34 +03:00
parent a743668e44
commit f49639c697
6 changed files with 206 additions and 276 deletions

View File

@@ -49,6 +49,15 @@ winding_t *AllocWinding( int points ){
return w;
}
winding_t AllocWinding_( int points ){
if ( points >= MAX_POINTS_ON_WINDING ) {
Error( "AllocWinding failed: MAX_POINTS_ON_WINDING exceeded" );
}
winding_t w;
w.reserve( points );
return w;
}
/*
=============
FreeWinding