Fix a few bugs
This commit is contained in:
parent
ab70d727b8
commit
bc55e84d5b
6 changed files with 48 additions and 32 deletions
|
@ -3280,8 +3280,13 @@ TPE_Vec3 TPE_envCone(TPE_Vec3 point, TPE_Vec3 center, TPE_Vec3 direction,
|
|||
TPE_Vec3 helper = TPE_vec3Project(point,direction);
|
||||
TPE_Unit y = TPE_LENGTH(helper);
|
||||
|
||||
// Licar change: the following fixes a TCC bug
|
||||
TPE_Unit tccFix = y;
|
||||
|
||||
helper = TPE_vec3Minus(point,helper);
|
||||
|
||||
y = tccFix; // for some reason the above line nukes y in TCC, so restore it
|
||||
|
||||
TPE_Unit x = TPE_LENGTH(helper);
|
||||
|
||||
if (x < 20)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue