ermm, you can just add some more clauses identical to the 'if(flags == 2)' bit, using the following values...
flags = 0 >>> (static light)
flags = 1 >>> (hi-res static light)
flags = 2 >>> (dynamic light)
flags = 3 >>> (hi-res dynamic light)
So all dynamic lights (hi-res or not), just change the if statement to 'if(flags == 2 || flags == 3)'.
Any more problems, don't hesitate to ask.
DJB.
Last edited by DJBMASTER; 12/26/09 09:14.