]> git.mxchange.org Git - simgear.git/commitdiff
Plib is willing callbacks to return 0, 1 or 2 and not simply a boolean
authorehofman <ehofman>
Fri, 2 Apr 2004 19:48:50 +0000 (19:48 +0000)
committerehofman <ehofman>
Fri, 2 Apr 2004 19:48:50 +0000 (19:48 +0000)
simgear/scene/model/model.cxx

index 66de79b59a123a2a190d465dc4c216e26a02d252..be5d9f48014e1b1c45b0dc838529b42d4a87a82f 100644 (file)
@@ -43,7 +43,7 @@ model_filter = true;
 static int
 model_filter_callback (ssgEntity * entity, int mask)
 {
-  return model_filter;
+  return model_filter ? 1 : 0;
 }
 
 /**