Fixed desync with bullets

This commit is contained in:
Kamay Xutax 2024-09-09 17:19:34 +02:00
parent 293f5a4b48
commit 49c98ebd77

View file

@ -359,6 +359,8 @@ void FX_FireBullets(
}
#endif
RandomSeed( iSeed + iBullet ); // init random system with this seed
float fTheta1 = RandomFloat( 0.0f, 2.0f * M_PI );
float fRadius1 = RandomFloat( 0.0f, fSpread );
float x1 = fRadius1 * cosf( fTheta1 );