engine/EngineVideoScreen.c
/*	Called for important messages that should stay in the center of the screen
	for a few moments
*/
Called for important messages that should stay in the center of the screen
for a few moments
Called for important messages that should stay in the center of the screen for a few moments
void SCR_CenterPrint (char *str) 
{
	strncpy(scr_centerstring, str, sizeof(scr_centerstring) - 1);
	scr_centertime_off = scr_centertime.value;
	scr_centertime_start = cl.time;
	scr_center_lines = 1;
	while (*str)
	{
		if (*str == '\n')
			scr_center_lines++;
		str++;
	}
}
void SCR_CenterPrint ( char * str ) { strncpy ( scr_centerstring , str , sizeof ( scr_centerstring ) - 1 ) ; scr_centertime_off = scr_centertime . value ; scr_centertime_start = cl . time ; scr_center_lines = 1 ; while ( * str ) { if ( * str == ' \n ' ) scr_center_lines ++ ; str ++ ; } }
Called for important messages that should stay in the center of the screen
for a few moments
Called for important messages that should stay in the center of the screen for a few moments
//update centerprint data // count the number of lines for centering