First changes to history format.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4925 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
3eae65cb89
commit
7dd318d949
@ -28,6 +28,8 @@
|
||||
|
||||
History* history = 0;
|
||||
|
||||
#define KEEP_OLD_FORMAT
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
/** Initialises the history object and sets the mode to none.
|
||||
*/
|
||||
@ -186,8 +188,12 @@ void History::Save()
|
||||
m_all_controls[j].m_steer,
|
||||
m_all_controls[j].m_accel,
|
||||
m_all_controls[j].getButtonsCompressed(),
|
||||
m_all_xyz[j].getX(), m_all_xyz[j].getY(),
|
||||
m_all_xyz[j].getZ(),
|
||||
m_all_xyz[j].getX(),
|
||||
#ifdef KEEP_OLD_FORMAT
|
||||
m_all_xyz[j].getZ(), m_all_xyz[j].getY(),
|
||||
#else
|
||||
m_all_xyz[j].getY(), m_all_xyz[j].getZ(),
|
||||
#endif
|
||||
m_all_rotations[j].getX(), m_all_rotations[j].getY(),
|
||||
m_all_rotations[j].getZ(), m_all_rotations[j].getW() );
|
||||
j=(j+1)%m_size;
|
||||
@ -297,7 +303,13 @@ void History::Load()
|
||||
&m_all_controls[i].m_steer,
|
||||
&m_all_controls[i].m_accel,
|
||||
&buttonsCompressed,
|
||||
&x, &y, &z, &rx, &ry, &rz, &rw);
|
||||
&x,
|
||||
#ifdef KEEP_OLD_FORMAT
|
||||
&z, &y,
|
||||
#else
|
||||
&y, &z,
|
||||
#endif
|
||||
&rx, &ry, &rz, &rw);
|
||||
m_all_xyz[i] = Vec3(x,y,z);
|
||||
m_all_rotations[i] = btQuaternion(rx,ry,rz,rw);
|
||||
m_all_controls[i].setButtonsCompressed(char(buttonsCompressed));
|
||||
|
Loading…
Reference in New Issue
Block a user