<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -24,6 +24,7 @@ introwin::introwin(window *p, std::vector&lt;std::string&gt; &amp;imagenames, std::vector&lt;
 	image_changed = false;
 	starttick = 0;
 	need_redraw = true;
+	scenetime = 0;
 }
 
 
@@ -59,6 +60,7 @@ bool introwin::draw()
 			pos_y = 2 * img_y + image-&gt;h + lineheight * j;
 			vultures_put_text(V_FONT_INTRO, subtitles[current_scene][j], vultures_screen,
 								pos_x, pos_y, V_COLOR_INTRO_TEXT);
+			scenetime += subtitles[current_scene][j].length() * MSEC_PER_CHAR;
 		}
 	} else
 		SDL_FillRect(vultures_screen, NULL, CLR32_BLACK);
@@ -71,7 +73,7 @@ bool introwin::draw()
 eventresult introwin::handle_timer_event(window* target, void* result, int time)
 {
 	/* next scene? */
-	if (SDL_GetTicks() - starttick &gt; SCENETIME)
+	if (SDL_GetTicks() - starttick &gt; scenetime)
 		return next_scene();
 	return V_EVENT_HANDLED_NOREDRAW;
 }
@@ -84,7 +86,7 @@ eventresult introwin::handle_mousemotion_event(window* target, void* result, int
 	vultures_set_mcursor(V_TILE_NONE);
 	
 	/* next scene? */
-	if (SDL_GetTicks() - starttick &gt; SCENETIME)
+	if (SDL_GetTicks() - starttick &gt; scenetime)
 		return next_scene();
 	return V_EVENT_HANDLED_NOREDRAW;
 }
@@ -119,6 +121,7 @@ eventresult introwin::next_scene()
 	starttick = SDL_GetTicks();
 	
 	current_scene++;
+	scenetime = 0;
 	if (current_scene &gt;= (int)imagenames.size())
 		return V_EVENT_HANDLED_FINAL;
 	</diff>
      <filename>vultures/winclass/introwin.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@
 #include &lt;string&gt;
 #include &lt;vector&gt;
 
-#define SCENETIME 5000
+#define MSEC_PER_CHAR 50
 
 class introwin : public window
 {
@@ -34,6 +34,7 @@ private:
   std::vector&lt; std::vector&lt;std::string&gt; &gt; subtitles;
 	bool image_changed;
 	int starttick;
+	unsigned int scenetime;
 };
 
 </diff>
      <filename>vultures/winclass/introwin.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>413741f0c81f63bba748d2f86f5a30b366f83925</id>
    </parent>
  </parents>
  <author>
    <name>Matthieu Felix</name>
    <email>matthieufelix@gmail.com</email>
  </author>
  <url>http://github.com/clivecrous/vultures/commit/9e40b57ec1de66aad4a93ba9e2cd26a482b35066</url>
  <id>9e40b57ec1de66aad4a93ba9e2cd26a482b35066</id>
  <committed-date>2009-05-23T15:40:08-07:00</committed-date>
  <authored-date>2009-05-23T15:40:08-07:00</authored-date>
  <message>Vulture's intro scene timeout depends on subtitle's length

The display time will be 50 times the number of characters in the scene's subtitles</message>
  <tree>4f43c47b52c2cf1251a41485d5ec18236e2e9f18</tree>
  <committer>
    <name>Clive Crous</name>
    <email>clive@crous.co.za</email>
  </committer>
</commit>
