Cyril Brulebois <[EMAIL PROTECTED]> (24/09/2006): > The major problem, which is item invisibility and the subject of this > bugreport, still remains, though. Here is a dpatch built upon a patch that upstream sent to me, which I tested. After some tests, it appears that the problem no longer occurs.
A quick fix for users that could suffer of that bug is to delete ~/.xmoto/LCache, where the cached files are stored with bad data, before running xmoto. Cheers, -- Cyril Brulebois PS: Nicolas, thanks for the patch!
#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_endianness_display_fix.dpatch by Cyril Brulebois <[EMAIL PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix missing display for basic items due to wrong endianness stuff in
## DP: save function
@DPATCH@
--- xmoto-0.2.1~/src/LevelSrc.cpp 2006-09-30 17:06:11.000000000 +0200
+++ xmoto-0.2.1/src/LevelSrc.cpp 2006-09-30 17:06:36.000000000 +0200
@@ -723,8 +723,8 @@
FS::writeString(pfh,m_Entities[i]->ID);
FS::writeString(pfh,m_Entities[i]->TypeID);
FS::writeFloat_LE(pfh,m_Entities[i]->fSize);
- FS::writeFloat(pfh,m_Entities[i]->fWidth);
- FS::writeFloat(pfh,m_Entities[i]->fHeight);
+ FS::writeFloat_LE(pfh,m_Entities[i]->fWidth);
+ FS::writeFloat_LE(pfh,m_Entities[i]->fHeight);
FS::writeFloat_LE(pfh,m_Entities[i]->fPosX);
FS::writeFloat_LE(pfh,m_Entities[i]->fPosY);
FS::writeByte(pfh,m_Entities[i]->Params.size());
pgpygYnOuesp2.pgp
Description: PGP signature

