mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
375a2fdeb4
commit
98bd7c8142
@ -31,6 +31,9 @@ static INLINE float scale_t(float t, float start, float end) {
|
||||
ret = start;
|
||||
if (ret > end)
|
||||
ret = end;
|
||||
// Avoid a possible divide-by-zero
|
||||
if (end == 0.0)
|
||||
return 0.0;
|
||||
return ret / end;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user