mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
- use proper math instead of crash-prone libdivide here.
This commit is contained in:
parent
42f16a7b30
commit
df7c5a7067
1 changed files with 2 additions and 1 deletions
|
@ -207,7 +207,8 @@ static void getclosestpointonwall_internal(vec2_t const p, int32_t const dawall,
|
|||
return;
|
||||
}
|
||||
|
||||
i = tabledivide64((i << 15), j) << 15;
|
||||
i = ((i << 15) / j) << 15;
|
||||
//i = tabledivide64((i << 15), j) << 15;
|
||||
|
||||
*closest = { (int32_t)(w.x + ((d.x * i) >> 30)), (int32_t)(w.y + ((d.y * i) >> 30)) };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue