]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_edict.c
added r_ambient support to q3bsp rendering
[xonotic/darkplaces.git] / pr_edict.c
index b07b6ec6787a532b64f6b78d6200024a7949fd70..efb16b50f6cbd5b151fc2049f57526ca8f568efd 100644 (file)
@@ -380,7 +380,7 @@ PR_ValueString
 Returns a string describing *data in a type specific manner
 =============
 */
-int NoCrash_NUM_FOR_EDICT(edict_t *e);
+//int NoCrash_NUM_FOR_EDICT(edict_t *e);
 char *PR_ValueString (etype_t type, eval_t *val)
 {
        static char line[1024]; // LordHavoc: enlarged a bit (was 256)
@@ -458,7 +458,7 @@ char *PR_UglyValueString (etype_t type, eval_t *val)
                // (like newline, specifically) into escape codes,
                // this fixes saving games from various mods
                s = PR_GetString (val->string);
-               for (i = 0;i < sizeof (line) - 2 && *s;)
+               for (i = 0;i < (int)sizeof(line) - 2 && *s;)
                {
                        if (*s == '\n')
                        {