@@ -204,6 +204,7 @@ int ConnectToServer(void)
204204 if (!LAN_SetName (player_name )) //tell server nickname
205205 {
206206 ShowMessageWrap (DEFAULT_MENU_FONT_SIZE , _ ("Connection with server lost" ));
207+ T4K_Tts_say (DEFAULT_VALUE ,DEFAULT_VALUE ,INTERRUPT ,_ ("Connection with server lost" ));
207208 return 0 ;
208209 }
209210 }
@@ -223,6 +224,7 @@ int ConnectToServer(void)
223224int Pregame (void )
224225{
225226 int widest = 0 ;
227+ int i ;
226228 int status = PREGAME_WAITING ;
227229 Uint32 timer = 0 ;
228230 const int loop_msec = 20 ;
@@ -250,6 +252,10 @@ int Pregame(void)
250252 notready_title = T4K_BlackOutline (_ ("Waiting until you are ready" ), DEFAULT_MENU_FONT_SIZE , & white );
251253 ready_subtitle = T4K_BlackOutline (_ ("Click \"Pause\" if not ready" ), DEFAULT_MENU_FONT_SIZE , & white );
252254 notready_subtitle = T4K_BlackOutline (_ ("Click \"Play\" when ready" ), DEFAULT_MENU_FONT_SIZE , & white );
255+ T4K_Tts_say (DEFAULT_VALUE ,DEFAULT_VALUE ,INTERRUPT ,"%s. %s. %s. Press space to announce updated table" ,_ ("Waiting for other players" ), \
256+ _ ("Waiting until you are ready" ),_ ("Click \"Play\" when ready" ));
257+
258+
253259
254260 //Make sure we have needed surfaces:
255261 if (!stop_button || !play_surf || !pause_surf || !ready_title
@@ -342,13 +348,28 @@ int Pregame(void)
342348 }
343349 case SDLK_RETURN :
344350 case SDLK_KP_ENTER :
345- case SDLK_SPACE :
346351 {
347352 ready = true;
348353 LAN_SetReady (true); //tell server we are ready to start
349354 playsound (SND_TOCK );
350355 break ;
351356 }
357+ case SDLK_SPACE :
358+ {
359+
360+ T4K_Tts_say (DEFAULT_VALUE ,DEFAULT_VALUE ,INTERRUPT ,_ ("Server Name: %s" ), LAN_ConnectedServerName ());
361+ T4K_Tts_say (DEFAULT_VALUE ,DEFAULT_VALUE ,APPEND ,_ ("Lesson: %s" ), LAN_ConnectedServerLesson ());
362+ for (i = 0 ; i < MAX_CLIENTS ; i ++ )
363+ {
364+ if (LAN_PlayerConnected (i ))
365+ {
366+ if (LAN_PlayerReady (i ))
367+ T4K_Tts_say (DEFAULT_VALUE ,DEFAULT_VALUE ,APPEND ,"%s %s" ,LAN_PlayerName (i ),_ ("Ready" ));
368+ else
369+ T4K_Tts_say (DEFAULT_VALUE ,DEFAULT_VALUE ,APPEND ,"%s %s" ,LAN_PlayerName (i ),_ ("Not Ready" ));
370+ }
371+ }
372+ }
352373 case SDLK_BACKSPACE :
353374 {
354375 ready = false;
0 commit comments