Fix rerecord count when loading movies

This commit is contained in:
Ilari Liusvaara 2013-02-01 23:14:00 +02:00
parent 8c346c0695
commit 8e88ad35b3

View file

@ -470,7 +470,7 @@ void do_load_state(struct moviefile& _movie, int lmode)
mlength %= 1000000000; mlength %= 1000000000;
x << std::setfill('0') << std::setw(3) << mlength / 1000000; x << std::setfill('0') << std::setw(3) << mlength / 1000000;
std::string rerecords = _movie.rerecords; std::string rerecords = _movie.rerecords;
if(lmode != LOAD_STATE_MOVIE) if(our_movie.is_savestate)
rerecords = (stringfmt() << rrdata::count()).str(); rerecords = (stringfmt() << rrdata::count()).str();
messages << "Rerecords " << rerecords << " length " << x.str() << " (" messages << "Rerecords " << rerecords << " length " << x.str() << " ("
<< _movie.get_frame_count() << " frames)" << std::endl; << _movie.get_frame_count() << " frames)" << std::endl;