Fix a couple of warnings

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5256 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2018-05-28 10:23:27 +00:00
parent 60c8797d25
commit 1d655322d0
2 changed files with 5 additions and 4 deletions

View File

@ -3298,7 +3298,7 @@ void Surf_DrawWorld (void)
#ifdef THREADEDWORLD
if ((r_dynamic.ival < 0 || currentmodel->numbatches) && !r_refdef.recurse && currentmodel->type == mod_brush)
{
struct webostate_s *webostate, *best = NULL, *generating = NULL;
struct webostate_s *webostate, *best = NULL;
vec_t bestdist = FLT_MAX;
for (webostate = webostates; webostate; webostate = webostate->next)
{
@ -3322,6 +3322,7 @@ void Surf_DrawWorld (void)
}
}
}
webostate = best;
if (qrenderer != QR_OPENGL && qrenderer != QR_VULKAN)
;

View File

@ -3942,17 +3942,17 @@ size_t strbufmax;
static void PR_buf_savegame(vfsfile_t *f, pubprogfuncs_t *prinst, qboolean binary)
{
size_t i, bufno;
unsigned int i, bufno;
for (bufno = 0; bufno < strbufmax; bufno++)
{
if (strbuflist[bufno].prinst == prinst && (strbuflist[bufno].flags & BUFFLAG_SAVED))
{
VFS_PRINTF (f, "buffer %i %i %i %i\n", bufno, 1, ev_string, strbuflist[bufno].used);
VFS_PRINTF (f, "buffer %u %i %i %u\n", bufno, 1, ev_string, (unsigned int)strbuflist[bufno].used);
VFS_PRINTF (f, "{\n");
for (i = 0; i < strbuflist[bufno].used; i++)
if (strbuflist[bufno].strings[i])
VFS_PRINTF (f, "%i %s\n", i, strbuflist[bufno].strings[i]);
VFS_PRINTF (f, "%u %s\n", i, strbuflist[bufno].strings[i]);
VFS_PRINTF (f, "}\n");
}
}