12-20-2013, 06:08 AM
Exactly what the topic says.
object.c: line 397
And there's nothing past this to specify it only to the player ships; the variable light is applied to all objects passed into the function. In fact, more light is applied on top of this to other objects.
object.c: line 397
Code:
void draw_polygon_object(object *obj)
{
g3s_lrgb light;
int imsave;
fix engine_glow_value[2]; //element 0 is for engine glow, 1 for headlight
light = compute_object_light(obj,NULL);
// If option set for bright players in netgame, brighten them!
#ifdef NETWORK
if (Game_mode & GM_MULTI)
if (Netgame.BrightPlayers)
light.r = light.g = light.b = F1_0*2;
#endif
And there's nothing past this to specify it only to the player ships; the variable light is applied to all objects passed into the function. In fact, more light is applied on top of this to other objects.