В сообщении от 20 Сентябрь 2006 15:17 Melchior FRANZ написал(a):
> Please make that:
>
>   <panel>
>       <light>
>           <red>...
>           <green>...
>           <blue>...
>       </light>

Fixed

>
>
> and avoid:
>
> (A) underscores in property names (for consistency reasons)

fixed
>
> (B) superfluous comments like

fixed

> (C) pee marks like

fixed

New, correct patch attached:



-- 
Wbr, Yurik
354a355
> double color;
382,384c383,398
<       if ( panel_color[0] < 0.7 ) panel_color[0] = 0.7;
<       if ( panel_color[1] < 0.2 ) panel_color[1] = 0.2;
<       if ( panel_color[2] < 0.2 ) panel_color[2] = 0.2;
---
> 	// multi-color panel lighting
>  	  if( 	fgHasNode("/panel/light/red") && 	
>  		fgHasNode("/panel/light/green") &&
>  		fgHasNode("/panel/light/blue") ){	  
>  		  color = fgGetDouble("/panel/light/red");
>  		  if( panel_color[0] < color ) panel_color[0] = color;
>  		  color = fgGetDouble("/panel/light/green");
>  		  if( panel_color[1] < color ) panel_color[1] = color;
>  		  color = fgGetDouble("/panel/light/blue");
>  		  if( panel_color[2] < color ) panel_color[2] = color;
>  	  }
>  	  else {	// default red mask
>  		  if ( panel_color[0] < 0.7 ) panel_color[0] = 0.7;
>  		  if ( panel_color[1] < 0.2 ) panel_color[1] = 0.2;
>  		  if ( panel_color[2] < 0.2 ) panel_color[2] = 0.2;
>  	  }		  
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to