/* /lib/props/radiance.c * From the Nightmare V LPC Library * Radiance is the capacity of one object to radiate light * Created by Descartes of Borg 961221 * Version: @(#) radiance.c 1.1@(#) * Last modified: 96/12/22 */ private static int RadiantLight = 0; int GetRadiantLight(int ambient) { if( ambient < 1 ) { return RadiantLight; } else { return (RadiantLight * 20)/(ambient); } } int SetRadiantLight(int x) { return (RadiantLight = x); }