OVR: Fix distance of lines (tags) of interior (taxis/maybe intercities)
[mercenary-reloaded.git] / src / mercenary / render.c
index adc1dc8..c6b0552 100644 (file)
@@ -63,7 +63,8 @@
 #define EXPLOSION_VERTICES     16
 #define EXPLOSION_STRETCH      1.19    /* as above */
 #define SIGHT_DIST             78.74   /* distanc of sights in inch */
-#define FIX_OBJECT_SCALE       16
+#define FIX_OBJECT_SCALE       16      /* intercity... */
+#define FIX_OBJECT_SCALE_TAG   2       /* line in faces of persons */
 
 /*
  *  render item definition and structures
@@ -1841,9 +1842,15 @@ void render_one_item(render_item_t *render_item, int vr)
                                break;
                        /* fixed objects are pre-scaled by 16, so we correct this */
                        if (fix) {
-                               x[i] /= FIX_OBJECT_SCALE;
-                               y[i] /= FIX_OBJECT_SCALE;
-                               z[i] /= FIX_OBJECT_SCALE;
+                               if (render_item->type == RENDER_ITEM_TAG_LINE_OBJECT) {
+                                       x[i] /= FIX_OBJECT_SCALE_TAG;
+                                       y[i] /= FIX_OBJECT_SCALE_TAG;
+                                       z[i] /= FIX_OBJECT_SCALE_TAG;
+                               } else {
+                                       x[i] /= FIX_OBJECT_SCALE;
+                                       y[i] /= FIX_OBJECT_SCALE;
+                                       z[i] /= FIX_OBJECT_SCALE;
+                               }
                        }
                        /* interpolate motion, if object is moving */
                        if ((render_item->type == RENDER_ITEM_OBJECT_LINE || render_item->type == RENDER_ITEM_TAG_LINE_OBJECT)  && render_item_object_info && render_item_object_info->u.info.moving) {