projects
/
mercenary-reloaded.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a319986
)
OVR: Fix distance of lines (tags) of interior (taxis/maybe intercities)
author
Andreas Eversberg
<jolly@eversberg.eu>
Sun, 10 Jun 2018 17:28:27 +0000
(19:28 +0200)
committer
Andreas Eversberg
<jolly@eversberg.eu>
Sun, 10 Jun 2018 17:28:27 +0000
(19:28 +0200)
src/mercenary/render.c
patch
|
blob
|
history
diff --git
a/src/mercenary/render.c
b/src/mercenary/render.c
index
adc1dc8
..
c6b0552
100644
(file)
--- a/
src/mercenary/render.c
+++ b/
src/mercenary/render.c
@@
-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 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
/*
* 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) {
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) {
}
/* 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) {