]> git.mxchange.org Git - simgear.git/commitdiff
pass the float pointer to the isNaN function instead of the SGVec3 type
authorehofman <ehofman>
Thu, 29 Oct 2009 17:03:16 +0000 (17:03 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 29 Oct 2009 22:04:17 +0000 (23:04 +0100)
simgear/sound/sample_group.cxx

index eed424c10ba93bddb5e96065b005561b6a7d3799..a5d19641d385e86097f7a20cccbf6069ac37c4bb 100644 (file)
@@ -384,9 +384,9 @@ void SGSampleGroup::update_sample_config( SGSoundSample *sample ) {
 
     if (dist(position, _smgr->get_position()) > 10000)
         printf("source and listener distance greater than 20km!\n");
-    if (isNaN(position)) printf("NaN in source position\n");
-    if (isNaN(orientation)) printf("NaN in source orientation\n");
-    if (isNaN(velocity)) printf("NaN in source velocity\n");
+    if (isNaN(toVec3f(position).data())) printf("NaN in source position\n");
+    if (isNaN(orientation.data())) printf("NaN in source orientation\n");
+    if (isNaN(velocity.data())) printf("NaN in source velocity\n");
 
     unsigned int source = sample->get_source();
     alSourcefv( source, AL_POSITION, toVec3f(position).data() );