summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/project.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/project.cpp b/common/project.cpp
index 29fbede..71f8d32 100644
--- a/common/project.cpp
+++ b/common/project.cpp
@@ -1481,7 +1481,7 @@ bool Project::DoSave(char* lpszPathName, bool bReplace)
pPiece->GetRotation(rotation);
Matrix mat(rotation, position);
mat.ToLDraw(f);
- sprintf (buf, " 1 %d %.2f %.2f %.2f %.2f %.2f %.2f %.2f %.2f %.2f %.2f %.2f %.2f %s.DAT\r\n",
+ sprintf (buf, " 1 %d %.2g %.2g %.2g %.2g %.2g %.2g %.2g %.2g %.2g %.2g %.2g %.2g %s.DAT\r\n",
col[pPiece->GetColor()], f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7], f[8], f[9], f[10], f[11], pPiece->GetPieceInfo()->m_strName);
file.Write(buf, strlen(buf));
}