* workaround for msvc compiler bug.
This commit is contained in:
parent
cb76ec0f2d
commit
602743a25b
|
@ -1460,6 +1460,8 @@ S_AL_Respatialize
|
||||||
static
|
static
|
||||||
void S_AL_Respatialize( int entityNum, const vec3_t origin, vec3_t axis[3], int inwater )
|
void S_AL_Respatialize( int entityNum, const vec3_t origin, vec3_t axis[3], int inwater )
|
||||||
{
|
{
|
||||||
|
// this piece of code causes an compiler error on msvc (MSDN 58559)
|
||||||
|
#ifndef _MSC_VER
|
||||||
S_AL_SanitiseVector( (vec_t *)origin );
|
S_AL_SanitiseVector( (vec_t *)origin );
|
||||||
S_AL_SanitiseVector( axis[ 0 ] );
|
S_AL_SanitiseVector( axis[ 0 ] );
|
||||||
S_AL_SanitiseVector( axis[ 1 ] );
|
S_AL_SanitiseVector( axis[ 1 ] );
|
||||||
|
@ -1469,6 +1471,18 @@ void S_AL_Respatialize( int entityNum, const vec3_t origin, vec3_t axis[3], int
|
||||||
float velocity[] = {0.0f, 0.0f, 0.0f};
|
float velocity[] = {0.0f, 0.0f, 0.0f};
|
||||||
float orientation[] = {axis[0][0], axis[0][1], axis[0][2],
|
float orientation[] = {axis[0][0], axis[0][1], axis[0][2],
|
||||||
axis[2][0], axis[2][1], axis[2][2]};
|
axis[2][0], axis[2][1], axis[2][2]};
|
||||||
|
#else
|
||||||
|
float velocity[3] = {0.0f, 0.0f, 0.0f};
|
||||||
|
float orientation[6];
|
||||||
|
|
||||||
|
S_AL_SanitiseVector( (vec_t *)origin );
|
||||||
|
S_AL_SanitiseVector( axis[ 0 ] );
|
||||||
|
S_AL_SanitiseVector( axis[ 1 ] );
|
||||||
|
S_AL_SanitiseVector( axis[ 2 ] );
|
||||||
|
|
||||||
|
orientation[0] = axis[0][0]; orientation[1] = axis[0][1]; orientation[2] = axis[0][2];
|
||||||
|
orientation[3] = axis[2][0]; orientation[4] = axis[2][1]; orientation[5] = axis[2][2];
|
||||||
|
#endif
|
||||||
|
|
||||||
VectorCopy( origin, lastListenerOrigin );
|
VectorCopy( origin, lastListenerOrigin );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue