@@ -79,17 +79,6 @@ void ProfileWorld::setProfileModeLaps(int laps)
7979 m_num_laps = laps;
8080} // setProfileModeLaps
8181
82- // -----------------------------------------------------------------------------
83- /* * Activates Demo mode. In this mode all karts are controlled by an AI, but
84- * at the end no stats are printed, and the game isn't exited.
85- * \param laps The number of laps.
86- */
87- void ProfileWorld::setProfileModeDemo (int laps)
88- {
89- m_profile_mode = PROFILE_DEMO;
90- m_num_laps = laps;
91- } // setProfileModeDemo
92-
9382// -----------------------------------------------------------------------------
9483/* * Creates a kart, having a certain position, starting location, and local
9584 * and global player id (if applicable).
@@ -131,8 +120,7 @@ bool ProfileWorld::isRaceOver()
131120 if (m_profile_mode==PROFILE_TIME)
132121 return getTime ()>m_time;
133122
134- if (m_profile_mode == PROFILE_LAPS ||
135- m_profile_mode == PROFILE_DEMO)
123+ if (m_profile_mode == PROFILE_LAPS )
136124 {
137125 // Now it must be laps based profiling:
138126 return race_manager->getFinishedKarts ()==getNumKarts ();
@@ -148,7 +136,6 @@ bool ProfileWorld::isRaceOver()
148136void ProfileWorld::update (float dt)
149137{
150138 StandardRace::update (dt);
151- if (m_profile_mode==PROFILE_DEMO) return ;
152139
153140 m_frame_count++;
154141 video::IVideoDriver *driver = irr_driver->getVideoDriver ();
@@ -195,9 +182,6 @@ void ProfileWorld::enterRaceOverState()
195182 m_karts[i]->finishedRace (estimateFinishTimeForKart (m_karts[i]));
196183 }
197184
198- // Do nothing more in demo mode - esp. don't abort ;)
199- if (m_profile_mode == PROFILE_DEMO) return ;
200-
201185 // Print framerate statistics
202186 float runtime = (irr_driver->getRealTime ()-m_start_time)*0 .001f ;
203187 printf (" Number of frames: %d time %f, Average FPS: %f\n " ,
0 commit comments