mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
windows: fix(workaround) illegal instruction in release build
This commit is contained in:
@@ -322,10 +322,17 @@ int ParseDirective( const char *pText )
|
||||
{
|
||||
if ( ParseFloats( pText, tempFloat, 4 ) )
|
||||
{
|
||||
for ( int i = 0; i < 4; ++i )
|
||||
// that's original code, msvc2015 generates illegal instruction on amd64 architecture
|
||||
/*for ( int i = 0; i < 4; ++i )
|
||||
{
|
||||
gMessageParms.boxcolor[ i ] = (byte)(int)tempFloat[ i ];
|
||||
}
|
||||
}*/
|
||||
|
||||
// workaround
|
||||
gMessageParms.boxcolor[0] = (int)tempFloat[0];
|
||||
gMessageParms.boxcolor[1] = (int)tempFloat[1];
|
||||
gMessageParms.boxcolor[2] = (int)tempFloat[2];
|
||||
gMessageParms.boxcolor[3] = (int)tempFloat[3];
|
||||
}
|
||||
}
|
||||
else if ( IsToken( pText, "clearmessage" ) )
|
||||
|
||||
Reference in New Issue
Block a user