mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Fixed crash
This commit is contained in:
parent
15fe2a2ae6
commit
d4a53e6b49
2 changed files with 4 additions and 4 deletions
|
@ -585,8 +585,6 @@ void idSWF::WriteXML( const char* filename )
|
|||
file->WriteFloatString( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" );
|
||||
file->WriteFloatString( "<XSWF version=\"%i\" timestamp=\"%i\" frameWidth=\"%f\" frameHeight=\"%f\" frameRate=\"%i\">\n", XSWF_VERSION, timestamp, frameWidth, frameHeight, frameRate );
|
||||
|
||||
mainsprite->WriteXML( file, "\t" );
|
||||
|
||||
file->WriteFloatString( "\t<Dictionary>\n" );
|
||||
for( int i = 0; i < dictionary.Num(); i++ )
|
||||
{
|
||||
|
@ -969,6 +967,8 @@ void idSWF::WriteXML( const char* filename )
|
|||
|
||||
file->WriteFloatString( "\t</Dictionary>\n" );
|
||||
|
||||
mainsprite->WriteXML( file, "\t" );
|
||||
|
||||
file->WriteFloatString( "</XSWF>\n" );
|
||||
}
|
||||
|
||||
|
|
|
@ -317,7 +317,7 @@ void idSWFSprite::WriteXML( idFile* f, const char* indentPrefix, int characterID
|
|||
//f->WriteFloatString( "\t\t<frameLabels num=\"%i\">", frameLabels.Num() );
|
||||
for( int i = 0; i < frameLabels.Num(); i++ )
|
||||
{
|
||||
f->WriteFloatString( "%s\t<FrameLabel frameNum=\"%i\" frameLabel=\"%i\"/>\n", indentPrefix, frameLabels[i].frameNum, frameLabels[i].frameLabel );
|
||||
f->WriteFloatString( "%s\t<FrameLabel frameNum=\"%i\" frameLabel=\"%s\"/>\n", indentPrefix, frameLabels[i].frameNum, frameLabels[i].frameLabel.c_str() );
|
||||
}
|
||||
|
||||
|
||||
|
@ -448,7 +448,7 @@ void idSWFSprite::WriteXML_PlaceObject2( idFile* file, idSWFBitStream& bitstream
|
|||
// FIXME: clip actions
|
||||
}
|
||||
|
||||
file->WriteFloatString( "%s\t\t</PlaceObject2>\n", indentPrefix, flags, depth );
|
||||
file->WriteFloatString( "%s\t\t</PlaceObject2>\n", indentPrefix );
|
||||
}
|
||||
|
||||
// RB end
|
||||
|
|
Loading…
Reference in a new issue