mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-03 02:30:58 +00:00
- replaced approx 1/3 of all accesses to the tilesiz wrapper class.
This commit is contained in:
parent
fc359065ae
commit
bbf1352db1
13 changed files with 64 additions and 56 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue