File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -438,7 +438,9 @@ void ParticleRenderStream(void* lpvParams)
438438#endif // _GPA_ENABLED
439439
440440 float sina = 0 .0f , cosa = 0 .0f ;
441- DWORD angle = 0xFFFFFFFF ;
441+ // Xottab_DUTY: changed angle to be float instead of DWORD
442+ // But it must be 0xFFFFFFFF or otherwise some particles won't play
443+ float angle = 0xFFFFFFFF ;
442444
443445 PRS_PARAMS* pParams = (PRS_PARAMS*)lpvParams;
444446
@@ -457,11 +459,11 @@ void ParticleRenderStream(void* lpvParams)
457459
458460 _mm_prefetch ((char *)&particles[i + 1 ], _MM_HINT_NTA);
459461
460- if (angle != *((DWORD*)& m.rot .x ) )
462+ if (angle != m.rot .x )
461463 {
462- angle = *((DWORD*)& m.rot .x ) ;
463- sina = std::sinf (*( float *)& angle);
464- cosa = std::cosf (*( float *)& angle);
464+ angle = m.rot .x ;
465+ sina = std::sinf (angle);
466+ cosa = std::cosf (angle);
465467 }
466468
467469 _mm_prefetch (64 + (char *)&particles[i + 1 ], _MM_HINT_NTA);
You can’t perform that action at this time.
0 commit comments