Skip to content
Permalink
Browse files

mod: fixed a few compiler warnings, refs #1208

See also be55681
  • Loading branch information
rmarquis committed Mar 23, 2020
1 parent ec822be commit 2b10f97c2173eebb2db4da350ac5b37fbd0da730
Showing with 0 additions and 7 deletions.
  1. +0 −1 src/cgame/cg_drawtools.c
  2. +0 −4 src/game/bg_slidemove.c
  3. +0 −2 src/ui/ui_menu.c
@@ -570,7 +570,6 @@ float *CG_LerpColorWithAttack(vec4_t from, vec4_t to, int startMsec, int totalMs
{
static vec4_t color;
int t;
int i;

if (startMsec == 0)
{
@@ -315,7 +315,6 @@ qboolean PM_SlideMove(qboolean gravity)
void PM_StepSlideMove(qboolean gravity)
{
vec3_t start_o, start_v;
vec3_t down_o, down_v;
trace_t trace;
vec3_t up, down;

@@ -378,9 +377,6 @@ void PM_StepSlideMove(qboolean gravity)
return;
}

VectorCopy(pm->ps->origin, down_o);
VectorCopy(pm->ps->velocity, down_v);

VectorCopy(start_o, up);
up[2] += STEPSIZE;

@@ -327,7 +327,6 @@ void Menu_UpdatePosition(menuDef_t *menu)
qboolean fullscreenItem = qfalse;
qboolean fullscreenMenu = qfalse;
qboolean centered = qfalse;
const char *menuName = NULL;
const char *itemName = NULL;

if (menu == NULL)
@@ -341,7 +340,6 @@ void Menu_UpdatePosition(menuDef_t *menu)
r = &menu->window.rect;
fullscreenMenu = (r->x == 0.f && r->y == 0.f && r->w == SCREEN_WIDTH && r->h == SCREEN_HEIGHT);
centered = (r->x == 16.f && r->w == 608.f);
menuName = menu->window.name;

// add offset to windows
if (centered)

0 comments on commit 2b10f97

Please sign in to comment.
You can’t perform that action at this time.