mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Move variable declarations closer to usages
This commit is contained in:
parent
9b68b9deef
commit
dbbae72ca7
|
@ -308,14 +308,12 @@ void CDemoRecorder::RecordSnapshot(int Tick, const void *pData, int Size)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// create delta, prepend tick
|
|
||||||
char aDeltaData[CSnapshot::MAX_SIZE + sizeof(int)];
|
|
||||||
int DeltaSize;
|
|
||||||
|
|
||||||
// write tickmarker
|
// write tickmarker
|
||||||
WriteTickMarker(Tick, false);
|
WriteTickMarker(Tick, false);
|
||||||
|
|
||||||
DeltaSize = m_pSnapshotDelta->CreateDelta((CSnapshot *)m_aLastSnapshotData, (CSnapshot *)pData, &aDeltaData);
|
// create delta
|
||||||
|
char aDeltaData[CSnapshot::MAX_SIZE + sizeof(int)];
|
||||||
|
const int DeltaSize = m_pSnapshotDelta->CreateDelta((CSnapshot *)m_aLastSnapshotData, (CSnapshot *)pData, &aDeltaData);
|
||||||
if(DeltaSize)
|
if(DeltaSize)
|
||||||
{
|
{
|
||||||
// record delta
|
// record delta
|
||||||
|
|
Loading…
Reference in a new issue