mirror of
https://github.com/ENSL/NS.git
synced 2024-11-30 00:10:57 +00:00
o Fixed bug in AvHNetworkMessages.cpp where the particle templates would send COORD but read LONG, causing the particle systems to never be deleted, drowning the client's FPS.
o Initialized long_data = 0 in NetMsg_UpdateEntityHierarchy to prevent usage of an uninitialized int. git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@116 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
ed8ea7c662
commit
3a95b692e7
1 changed files with 2 additions and 2 deletions
|
@ -1619,7 +1619,7 @@ union float_converter
|
||||||
WRITE_COORD( particle_template.GetGenerationEntityParameter() );
|
WRITE_COORD( particle_template.GetGenerationEntityParameter() );
|
||||||
WRITE_BYTE( particle_template.GetStartingVelocityShape() );
|
WRITE_BYTE( particle_template.GetStartingVelocityShape() );
|
||||||
particle_template.GetStartingVelocityParams( vel_params );
|
particle_template.GetStartingVelocityParams( vel_params );
|
||||||
for( int counter = 0; counter < 8; counter++ ) { WRITE_COORD( vel_params[counter] ); }
|
for( int counter = 0; counter < 8; counter++ ) { WRITE_LONG( vel_params[counter] ); }
|
||||||
particle_template.GetGravity( gravity );
|
particle_template.GetGravity( gravity );
|
||||||
for( int counter = 0; counter < 8; counter++ ) { WRITE_COORD( gravity[counter] ); }
|
for( int counter = 0; counter < 8; counter++ ) { WRITE_COORD( gravity[counter] ); }
|
||||||
WRITE_COORD( particle_template.GetMaxAlpha() );
|
WRITE_COORD( particle_template.GetMaxAlpha() );
|
||||||
|
@ -1934,7 +1934,7 @@ const int kEntHierFlagDeletion = 0x02;
|
||||||
NewItems.clear();
|
NewItems.clear();
|
||||||
OldItems.clear();
|
OldItems.clear();
|
||||||
int amnt_read = 0;
|
int amnt_read = 0;
|
||||||
int short_data, long_data;
|
int short_data, long_data = 0;
|
||||||
BEGIN_READ( buffer, size );
|
BEGIN_READ( buffer, size );
|
||||||
while( amnt_read < size )
|
while( amnt_read < size )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue