mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
Rework TemplateString for standard compliance
Creating an std::integer_sequence from a user-defined string literal is a non-standard gcc extension. This alternative implementation should conform to C++20.
This commit is contained in:
@@ -496,10 +496,10 @@ static void SetBrushContents( brush_t& b ){
|
||||
else if ( s->compileFlags & C_FOG ){
|
||||
b.contentShader = s->shaderInfo;
|
||||
}
|
||||
else if ( b.contentShader->contentFlags & GetRequiredSurfaceParm( "playerclip"_Tstring ).contentFlags ){
|
||||
else if ( b.contentShader->contentFlags & GetRequiredSurfaceParm< "playerclip"_Tstring >().contentFlags ){
|
||||
continue;
|
||||
}
|
||||
else if ( s->contentFlags & GetRequiredSurfaceParm( "playerclip"_Tstring ).contentFlags ){
|
||||
else if ( s->contentFlags & GetRequiredSurfaceParm< "playerclip"_Tstring >().contentFlags ){
|
||||
b.contentShader = s->shaderInfo;
|
||||
}
|
||||
else if (!( b.contentShader->compileFlags & C_SOLID )){
|
||||
|
||||
Reference in New Issue
Block a user