diff Indoor.cpp @ 2251:47bcb700b74b

for StackLight_TerrainFace
author Ritor1
date Wed, 26 Feb 2014 20:10:43 +0600
parents c4f87fb3cfee
children 2e02c384c62b
line wrap: on
line diff
--- a/Indoor.cpp	Tue Feb 25 20:02:06 2014 +0600
+++ b/Indoor.cpp	Wed Feb 26 20:10:43 2014 +0600
@@ -5569,7 +5569,7 @@
         if ( next_vertices_flag )//следующая вершина за ближней границей
         {
           //t = near_clip - v0.z / v1.z - v0.z
-          t = fixpoint_div(524288 - PortalFace._view_transformed_z[i + 2], PortalFace._view_transformed_z[i + 3] - PortalFace._view_transformed_z[i + 2]);
+          t = fixpoint_div(0x80000 - PortalFace._view_transformed_z[i + 2], PortalFace._view_transformed_z[i + 3] - PortalFace._view_transformed_z[i + 2]);
           //New_x = (v1.x - v0.x)*t + v0.x
           PortalFace._view_transformed_x[depth_num_vertices] = fixpoint_mul((PortalFace._view_transformed_x[i + 3] - PortalFace._view_transformed_x[i + 2]), t) 
                                                                + PortalFace._view_transformed_x[i + 2];