Skip to content

Commit

Permalink
Fixed some minor compilation warnings about type conversions with exp…
Browse files Browse the repository at this point in the history
…licit casts.
  • Loading branch information
danij committed May 19, 2007
1 parent bbc91d0 commit b08ef0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doomsday/plugins/openal/src/driver_openal.c
Expand Up @@ -451,7 +451,7 @@ void SetPan(ALuint source, float pan)
float pos[3];

//alSourcei(source, AL_SOURCE_RELATIVE, AL_TRUE);
Vectors(headYaw - pan * PI / 2, headPitch, pos, 0);
Vectors((float) (headYaw - pan * PI / 2), headPitch, pos, 0);
alSourcefv(source, AL_POSITION, pos);
}

Expand Down Expand Up @@ -602,8 +602,9 @@ void DS_Listenerv(int property, float *values)
break;

case SFXLP_ORIENTATION:
Vectors(headYaw = values[VX] / 180 * PI, headPitch =
values[VY] / 180 * PI, ori, ori + 3);
Vectors(headYaw = (float) (values[VX] / 180 * PI),
headPitch = (float) (values[VY] / 180 * PI),
ori, ori + 3);
alListenerfv(AL_ORIENTATION, ori);
break;

Expand Down

0 comments on commit b08ef0a

Please sign in to comment.