[quake3-commits] r2027 - trunk/code/game

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Jun 15 11:31:41 EDT 2011


Author: thilo
Date: 2011-06-15 11:31:37 -0400 (Wed, 15 Jun 2011)
New Revision: 2027

Modified:
   trunk/code/game/bg_lib.c
   trunk/code/game/bg_lib.h
   trunk/code/game/g_main.c
Log:
- Merge http://svn.icculus.org/tremulous?view=rev&revision=2185, patch by Chris Schwarz
- Remove Q_snprintf as Com_sprintf exists already


Modified: trunk/code/game/bg_lib.c
===================================================================
--- trunk/code/game/bg_lib.c	2011-06-15 14:10:20 UTC (rev 2026)
+++ trunk/code/game/bg_lib.c	2011-06-15 15:31:37 UTC (rev 2027)
@@ -2083,18 +2083,6 @@
 	return dopr(str, length, fmt, args);
 }
 
-int Q_snprintf(char *str, size_t length, const char *fmt, ...)
-{
-	va_list ap;
-	int retval;
-
-	va_start(ap, fmt);
-	retval = Q_vsnprintf(str, length, fmt, ap);
-	va_end(ap);
-	
-	return retval;
-}
-
 /* this is really crappy */
 int sscanf( const char *buffer, const char *fmt, ... ) {
 	int		cmd;

Modified: trunk/code/game/bg_lib.h
===================================================================
--- trunk/code/game/bg_lib.h	2011-06-15 14:10:20 UTC (rev 2026)
+++ trunk/code/game/bg_lib.h	2011-06-15 15:31:37 UTC (rev 2027)
@@ -102,7 +102,6 @@
 long strtol( const char *nptr, char **endptr, int base );
 
 int Q_vsnprintf( char *buffer, size_t length, const char *fmt, va_list argptr );
-int Q_snprintf( char *buffer, size_t length, const char *fmt, ... ) __attribute__ ((format (printf, 3, 4)));
 
 int sscanf( const char *buffer, const char *fmt, ... ) __attribute__ ((format (scanf, 2, 3)));
 

Modified: trunk/code/game/g_main.c
===================================================================
--- trunk/code/game/g_main.c	2011-06-15 14:10:20 UTC (rev 2026)
+++ trunk/code/game/g_main.c	2011-06-15 15:31:37 UTC (rev 2027)
@@ -1113,7 +1113,7 @@
 	char		string[1024];
 	int			min, tens, sec;
 
-	sec = level.time / 1000;
+	sec = ( level.time - level.startTime ) / 1000;
 
 	min = sec / 60;
 	sec -= min * 60;



More information about the quake3-commits mailing list