]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_particles.c
fixed compile errors and warnings using Dev-C++ in "Compile as C++" mode
[xonotic/darkplaces.git] / cl_particles.c
index 47020d78601c10a59ede1bc8c6a2975de51863cd..ac186bbe981be69a2ad6d8774e9a0cf060874787 100644 (file)
@@ -301,8 +301,8 @@ void CL_Particles_ParseEffectInfo(const char *textstart, const char *textend)
                        info->lightshadow = true;
                        info->lighttime = 9999;
                        info->stretchfactor = 1;
-                       info->staincolor[0] = -1;
-                       info->staincolor[1] = -1;
+                       info->staincolor[0] = (unsigned int)-1;
+                       info->staincolor[1] = (unsigned int)-1;
                        info->staintex[0] = -1;
                        info->staintex[1] = -1;
                }
@@ -376,7 +376,7 @@ void CL_Particles_ParseEffectInfo(const char *textstart, const char *textend)
                else if (!strcmp(argv[0], "stretchfactor")) {readfloat(info->stretchfactor);}
                else if (!strcmp(argv[0], "staincolor")) {readints(info->staincolor, 2);}
                else if (!strcmp(argv[0], "staintex")) {readints(info->staintex, 2);}
-               else if (!strcmp(argv[0], "stainless")) {info->staintex[0] = -2; info->staincolor[0] = -1; info->staincolor[1] = -1;}
+               else if (!strcmp(argv[0], "stainless")) {info->staintex[0] = -2; info->staincolor[0] = (unsigned int)-1; info->staincolor[1] = (unsigned int)-1;}
                else
                        Con_Printf("effectinfo.txt:%i: skipping unknown command %s\n", linenumber, argv[0]);
 #undef checkparms