]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_draw.c
added buildnumber.c to makefile
[xonotic/darkplaces.git] / gl_draw.c
index 88e68abde7d33bd8440e0d65e515950d8f4db930..7777801f6431fe88361e152ddd579dd34821177d 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -48,7 +48,7 @@ typedef struct
 byte           conback_buffer[sizeof(qpic_t) + sizeof(glpic_t)];
 qpic_t         *conback = (qpic_t *)&conback_buffer;
 
-int            gl_filter_min = GL_LINEAR_MIPMAP_NEAREST;
+int            gl_filter_min = GL_LINEAR_MIPMAP_LINEAR; //NEAREST;
 int            gl_filter_max = GL_LINEAR;
 
 
@@ -365,6 +365,7 @@ Draw_Init
 ===============
 */
 void rmain_registercvars();
+extern int buildnumber;
 void Draw_Init (void)
 {
        int             i;
@@ -412,15 +413,19 @@ void Draw_Init (void)
        // hack the version number directly into the pic
 #ifdef NEHAHRA
 #if defined(__linux__)
-       sprintf (ver, "DPNehahra Linux GL %.2f", (float) VERSION);
+       sprintf (ver, "DPNehahra Linux GL %.2f build %5i", (float) VERSION, buildnumber);
+#elif defined(WIN32)
+       sprintf (ver, "DPNehahra Windows GL %.2f build %5i", (float) VERSION, buildnumber);
 #else
-       sprintf (ver, "DPNehahra Windows GL %.2f", (float) VERSION);
+       sprintf (ver, "DPNehahra Unknown GL %.2f build %5i", (float) VERSION, buildnumber);
 #endif
 #else
 #if defined(__linux__)
-       sprintf (ver, "DarkPlaces Linux GL %.2f", (float)VERSION);
+       sprintf (ver, "DarkPlaces Linux GL %.2f build %5i", (float) VERSION, buildnumber);
+#elif defined(WIN32)
+       sprintf (ver, "DarkPlaces Windows GL %.2f build %5i", (float) VERSION, buildnumber);
 #else
-       sprintf (ver, "DarkPlaces Windows GL %.2f", (float)VERSION);
+       sprintf (ver, "DarkPlaces Unknown GL %.2f build %5i", (float) VERSION, buildnumber);
 #endif
 #endif
        dest = cb->data + 320*186 + 320 - 11 - 8*strlen(ver);