[wpdev-commits] wolfpack world.cpp,1.120,1.121
Brought to you by:
rip,
thiagocorrea
From: Richard M. <dr...@us...> - 2004-08-31 22:40:31
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv481 Modified Files: world.cpp Log Message: Another fix sent to me! Index: world.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/world.cpp,v retrieving revision 1.120 retrieving revision 1.121 diff -C2 -d -r1.120 -r1.121 *** world.cpp 31 Aug 2004 22:04:39 -0000 1.120 --- world.cpp 31 Aug 2004 22:40:20 -0000 1.121 *************** *** 522,525 **** --- 522,533 ---- while ( type != 0xFF ); reader.close(); + + // post process all loaded objects + QPtrList<PersistentObject>::const_iterator cit(objects.begin()); + + while (cit != objects.end()) { + (*cit)->postload(reader.version()); + ++cit; + } } } *************** *** 789,801 **** PersistentBroker::instance()->disconnect(); } ! // post process all loaded objects ! QPtrList<PersistentObject>::const_iterator cit(objects.begin()); ! ! while (cit != objects.end()) { ! (*cit)->postload(0); ! ++cit; ! } unsigned int duration = getNormalizedTime() - loadStart; --- 797,811 ---- PersistentBroker::instance()->disconnect(); + + // post process all loaded objects + QPtrList<PersistentObject>::const_iterator cit(objects.begin()); + + while (cit != objects.end()) { + (*cit)->postload(0); + ++cit; + } } ! unsigned int duration = getNormalizedTime() - loadStart; |