mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Uncomments networking lines that ensure client has the particle's textures
This commit is contained in:
parent
dc6eba0519
commit
834116c513
1 changed files with 4 additions and 4 deletions
|
|
@ -293,7 +293,7 @@ void ParticleData::packData(BitStream* stream)
|
||||||
stream->writeFloat( times[i], 8);
|
stream->writeFloat( times[i], 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
//PACKDATA_ASSET(Texture);
|
PACKDATA_ASSET(Texture);
|
||||||
|
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
mathWrite(*stream, texCoords[i]);
|
mathWrite(*stream, texCoords[i]);
|
||||||
|
|
@ -307,7 +307,7 @@ void ParticleData::packData(BitStream* stream)
|
||||||
stream->writeInt(framesPerSec, 8);
|
stream->writeInt(framesPerSec, 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
//PACKDATA_ASSET(TextureExt);
|
PACKDATA_ASSET(TextureExt);
|
||||||
|
|
||||||
stream->writeFlag(constrain_pos);
|
stream->writeFlag(constrain_pos);
|
||||||
stream->writeFloat(start_angle/360.0f, 11);
|
stream->writeFloat(start_angle/360.0f, 11);
|
||||||
|
|
@ -378,7 +378,7 @@ void ParticleData::unpackData(BitStream* stream)
|
||||||
times[i] = stream->readFloat(8);
|
times[i] = stream->readFloat(8);
|
||||||
}
|
}
|
||||||
|
|
||||||
//UNPACKDATA_ASSET(Texture);
|
UNPACKDATA_ASSET(Texture);
|
||||||
|
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
mathRead(*stream, &texCoords[i]);
|
mathRead(*stream, &texCoords[i]);
|
||||||
|
|
@ -391,7 +391,7 @@ void ParticleData::unpackData(BitStream* stream)
|
||||||
framesPerSec = stream->readInt(8);
|
framesPerSec = stream->readInt(8);
|
||||||
}
|
}
|
||||||
|
|
||||||
//UNPACKDATA_ASSET(Texture);
|
UNPACKDATA_ASSET(TextureExt);
|
||||||
|
|
||||||
constrain_pos = stream->readFlag();
|
constrain_pos = stream->readFlag();
|
||||||
start_angle = 360.0f*stream->readFloat(11);
|
start_angle = 360.0f*stream->readFloat(11);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue