scale sprite draw distance with mapobjscale
This commit is contained in:
1 parent
7dc4a7177d
commit
ec5840f840
2 files changed
+6
-6
No files matched your search
@@ -4796,12 +4796,12 @@ void HWR_AddSprites(sector_t *sec)
|
||||
{
|
||||
// Use the smaller setting
|
||||
if (cv_drawdist.value)
|
||||
limit_dist = min(current_bsp_culling_distance, cv_drawdist.value << FRACBITS);
|
||||
limit_dist = min(current_bsp_culling_distance, (fixed_t)(cv_drawdist.value) * mapobjectscale);
|
||||
else
|
||||
limit_dist = current_bsp_culling_distance;
|
||||
}
|
||||
else
|
||||
limit_dist = cv_drawdist.value << FRACBITS;
|
||||
limit_dist = (fixed_t)(cv_drawdist.value) * mapobjectscale;
|
||||
|
||||
// Handle all things in sector.
|
||||
// If a limit exists, handle things a tiny bit different.
|
||||
@@ -4904,9 +4904,9 @@ static void HWR_AddPrecipitationSprites(void)
|
||||
precipmobj_t *th;
|
||||
|
||||
if (current_bsp_culling_distance)
|
||||
drawdist = min(current_bsp_culling_distance, cv_drawdist_precip.value * mapobjectscale);
|
||||
drawdist = min(current_bsp_culling_distance, (fixed_t)(cv_drawdist_precip.value) * mapobjectscale);
|
||||
else
|
||||
drawdist = cv_drawdist_precip.value * mapobjectscale;
|
||||
drawdist = (fixed_t)(cv_drawdist_precip.value) * mapobjectscale;
|
||||
|
||||
// No to infinite precipitation draw distance.
|
||||
if (drawdist == 0)
|
||||
|
||||
+2
-2
@@ -1950,7 +1950,7 @@ void R_AddSprites(sector_t *sec, INT32 lightlevel)
|
||||
|
||||
// Handle all things in sector.
|
||||
// If a limit exists, handle things a tiny bit different.
|
||||
if ((limit_dist = (fixed_t)(/*(maptol & TOL_NIGHTS) ? cv_drawdist_nights.value : */cv_drawdist.value) << FRACBITS))
|
||||
if ((limit_dist = (fixed_t)(cv_drawdist.value) * mapobjectscale))
|
||||
{
|
||||
for (thing = sec->thinglist; thing; thing = thing->snext)
|
||||
{
|
||||
@@ -2042,7 +2042,7 @@ void R_AddSprites(sector_t *sec, INT32 lightlevel)
|
||||
//
|
||||
void R_AddPrecipitationSprites(void)
|
||||
{
|
||||
const fixed_t drawdist = cv_drawdist_precip.value * mapobjectscale;
|
||||
const fixed_t drawdist = (fixed_t)(cv_drawdist_precip.value) * mapobjectscale;
|
||||
|
||||
INT32 xl, xh, yl, yh, bx, by;
|
||||
precipmobj_t *th, *next;
|
||||
|
||||
Reference in new issue
Block a user