On Dec 9, 2007 11:02 AM, Melchior FRANZ <[EMAIL PROTECTED]> wrote: > * Csaba Halász -- Wednesday 05 December 2007: > > First patch fixes a bug caused by the uninitialized _range_nm member. > > If it happens to contain nan, this will never get overwritten. > > Second patch adds support for filtering what should be displayed. > > Do the patches apply to both branches?
Umm, theoretically, yes. I think the wxradar works for plib too. I'll check. > How's the mask supposed to work? The aircraft types aren't bits, > but just an index, so you could always only select one of them, no? > Not really what we usually call a mask. And when would you like to > show ships, and nothing else (not even carriers)? Wouldn't it be > better to turn the aircraft numbers into bits first? I have turned them into bits :) int type = ac->getType(); if ((1 << type) & type_mask) continue; Ships and carriers would therefore be (1 << otShip) | (1 << otCarrier) = 12 for the mask. (Note that in the code snippet above, the type_mask variable is negated) Do we have a place for documentation about such features? -- Csaba/Jester ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel