mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-14 01:33:29 +00:00
Load map descriptions from their XML file.
Add basic hold-fire stance, and use it for some test maps. Add JSON data container to map XML files, to simplify the interaction between scripts and maps. Fix fixed-point printing so it roundtrips safely through map files. Fix camera startup positions in old-format maps. This was SVN commit r7844.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "lib/secure_crt.h"
|
||||
#include "lib/utf8.h"
|
||||
#include "ps/CStr.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
@@ -106,7 +107,7 @@ void CDebugSerializer::PutNumber(const char* name, double value)
|
||||
|
||||
void CDebugSerializer::PutNumber(const char* name, fixed value)
|
||||
{
|
||||
m_Stream << INDENT << name << ": " << canonfloat(value.ToDouble(), 11) << "\n";
|
||||
m_Stream << INDENT << name << ": " << value.ToString() << "\n";
|
||||
}
|
||||
|
||||
void CDebugSerializer::PutBool(const char* name, bool value)
|
||||
|
||||
Reference in New Issue
Block a user