summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorPhilip J Freeman <elektron@halo.nu>2017-01-10 19:45:08 -0800
committerPhilip J Freeman <elektron@halo.nu>2017-01-10 19:45:08 -0800
commitc85c7448bfb0890aad35a265147e7fd81de30cd7 (patch)
treee92dbdec4d8899fe1213593e7d37e4b97d8c5751 /modules
parentd3e33d16473194aae9e00712f12b721dcef762a5 (diff)
stars: fixed bug in opacity calculation (starslib)
Diffstat (limited to 'modules')
-rw-r--r--modules/stars/starslib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/stars/starslib.c b/modules/stars/starslib.c
index 3c1905c..9d43062 100644
--- a/modules/stars/starslib.c
+++ b/modules/stars/starslib.c
@@ -114,7 +114,7 @@ int process_point( struct universe *u, struct return_point *rp )
}
} else {
int m = OPACITY_MAX*((u->depth-u->iterator->z)*4)/u->depth;
- if ( m>=OPACITY_MAX ){ m=OPACITY_MAX-1; }
+ if ( m>OPACITY_MAX ){ m=OPACITY_MAX; }
u->iterator->z = u->iterator->z - 1;
#ifdef DEBUG
printf("RETURN POINT: %lx\n", (long unsigned int )u->iterator);
© All Rights Reserved