- replaced approx 1/3 of all accesses to the tilesiz wrapper class.

This commit is contained in:
Christoph Oelckers 2020-11-23 00:18:07 +01:00
parent fc359065ae
commit bbf1352db1
13 changed files with 64 additions and 56 deletions

View file

@ -1198,7 +1198,7 @@ int32_t try_facespr_intersect(uspriteptr_t const spr, vec3_t const in,
vec2_t const off = { scale(vx, topu, bot), scale(vy, topu, bot) };
int32_t const dist = off.x * off.x + off.y * off.y;
siz = tilesiz[spr->picnum].x * spr->xrepeat;
siz = tileWidth(spr->picnum) * spr->xrepeat;
if (dist > mulscale7(siz, siz)) return 0;