sky wall strip fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4115 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2009-01-04 22:25:01 +00:00
parent 47a5c4f7f3
commit c7aa8011af
+2 -4
View File
@@ -352,10 +352,8 @@ void render_square(int wtex, float floor1, float floor2, float ceil1, float ceil
else // continue strip
{
int lighterr = lighterror*2;
if((!hf && !ohf
&& abs(ol1r-l2->r)<lighterr // skip vertices if light values are close enough
&& abs(ol1g-l2->g)<lighterr
&& abs(ol1b-l2->b)<lighterr) || !wtex)
if((!hf && !ohf)
&& ((abs(ol1r-l2->r)<lighterr && abs(ol1g-l2->g)<lighterr && abs(ol1b-l2->b)<lighterr) || !wtex)) // skip vertices if light values are close enough
{
verts.setsizenodelete(verts.length()-2);
nquads--;