Bugfix: physics replay didn't work (due to incorrect sscanf format).

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10202 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-11-14 06:05:27 +00:00
parent 311fef8726
commit 7f086ded7a

View File

@ -345,8 +345,7 @@ void History::Load()
fgets(s, 1023, fd);
int buttonsCompressed;
float x,y,z,rx,ry,rz,rw;
sscanf(s, "%d %f %f %d %f %f %f %f %f %f %f\n",
&j,
sscanf(s, "%f %f %d %f %f %f %f %f %f %f\n",
&m_all_controls[i].m_steer,
&m_all_controls[i].m_accel,
&buttonsCompressed,