diff options
| author | Steven Fuller <relnev@icculus.org> | 2008-05-18 05:13:51 -0700 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:37 +0200 |
| commit | 25260a55dceff4565c6f49fa5773e5939531dad2 (patch) | |
| tree | d327fb0fee9647c9900305628d30631f0784f97d /src | |
| parent | adbf5e440df5e5222afa4af415e53810b56b49f2 (diff) | |
Fixed an undefined value assert.
Diffstat (limited to 'src')
| -rw-r--r-- | src/kshape.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kshape.c b/src/kshape.c index ae50f9e..312d8ca 100644 --- a/src/kshape.c +++ b/src/kshape.c @@ -4037,7 +4037,8 @@ void AddShape(DISPLAYBLOCK *dptr, VIEWDESCRIPTORBLOCK *VDB_Ptr) { PARTICLE particle; - particle.Position.vy = -280+i-GetCos((CloakingPhase/16*i + i*64+particle.Position.vz)&4095)/1024; + // SBF - 20080518 - commented out the undefined usage of particle.Position.vz + particle.Position.vy = -280+i-GetCos((CloakingPhase/16*i + i*64/*+particle.Position.vz*/)&4095)/1024; particle.Position.vx = GetCos((CloakingPhase +i*64+particle.Position.vy)&4095)/512; particle.Position.vz = GetSin((CloakingPhase +i*64+particle.Position.vy)&4095)/512; |
